1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Doc string followup to last change.

* lisp/progmodes/xref.el (xref-find-apropos): Mention
'tags-apropos-additional-actions' in the doc string.
* lisp/progmodes/etags.el (tags-apropos-additional-actions):
Mention 'xref-find-apropos' in the doc string.
This commit is contained in:
Eli Zaretskii 2021-09-10 15:02:41 +03:00
parent b4158a75c0
commit f94b915e2f
2 changed files with 7 additions and 4 deletions

View file

@ -158,11 +158,12 @@ Otherwise, `find-tag-default' is used."
:version "21.1")
(defcustom tags-apropos-additional-actions nil
"Specify additional actions for `tags-apropos'.
"Specify additional actions for `tags-apropos' and `xref-find-apropos'.
If non-nil, value should be a list of triples (TITLE FUNCTION
TO-SEARCH). For each triple, `tags-apropos' processes TO-SEARCH and
lists tags from it. TO-SEARCH should be an alist, obarray, or symbol.
TO-SEARCH). For each triple, `tags-apropos' and `xref-find-apropos'
process TO-SEARCH and list tags from it. TO-SEARCH should be an alist,
obarray, or symbol.
If it is a symbol, the symbol's value is used.
TITLE, a string, is a title used to label the additional list of tags.
FUNCTION is a function to call when a symbol is selected in the

View file

@ -1445,7 +1445,9 @@ This command is intended to be bound to a mouse event."
;;;###autoload
(defun xref-find-apropos (pattern)
"Find all meaningful symbols that match PATTERN.
The argument has the same meaning as in `apropos'."
The argument has the same meaning as in `apropos'.
See `tags-apropos-additional-actions' for how to augment the
output of this command when the backend is etags."
(interactive (list (read-string
"Search for pattern (word list or regexp): "
nil 'xref--read-pattern-history