aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2021-09-10 15:02:41 +0300
committerEli Zaretskii2021-09-10 15:02:41 +0300
commitf94b915e2f079eeaf3890bb08658f7c84dfc0773 (patch)
tree304f9dba72b9b1d586e46426fe43f2f259f55a48
parentb4158a75c0ae7d3318b958da8c75e0a07570effc (diff)
downloademacs-f94b915e2f079eeaf3890bb08658f7c84dfc0773.tar.gz
emacs-f94b915e2f079eeaf3890bb08658f7c84dfc0773.zip
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.
-rw-r--r--lisp/progmodes/etags.el7
-rw-r--r--lisp/progmodes/xref.el4
2 files changed, 7 insertions, 4 deletions
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index 7efa88546d6..cddf3ba0b98 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -158,11 +158,12 @@ Otherwise, `find-tag-default' is used."
158 :version "21.1") 158 :version "21.1")
159 159
160(defcustom tags-apropos-additional-actions nil 160(defcustom tags-apropos-additional-actions nil
161 "Specify additional actions for `tags-apropos'. 161 "Specify additional actions for `tags-apropos' and `xref-find-apropos'.
162 162
163If non-nil, value should be a list of triples (TITLE FUNCTION 163If non-nil, value should be a list of triples (TITLE FUNCTION
164TO-SEARCH). For each triple, `tags-apropos' processes TO-SEARCH and 164TO-SEARCH). For each triple, `tags-apropos' and `xref-find-apropos'
165lists tags from it. TO-SEARCH should be an alist, obarray, or symbol. 165process TO-SEARCH and list tags from it. TO-SEARCH should be an alist,
166obarray, or symbol.
166If it is a symbol, the symbol's value is used. 167If it is a symbol, the symbol's value is used.
167TITLE, a string, is a title used to label the additional list of tags. 168TITLE, a string, is a title used to label the additional list of tags.
168FUNCTION is a function to call when a symbol is selected in the 169FUNCTION is a function to call when a symbol is selected in the
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index 082da1e1b7a..9a0de5f449b 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -1445,7 +1445,9 @@ This command is intended to be bound to a mouse event."
1445;;;###autoload 1445;;;###autoload
1446(defun xref-find-apropos (pattern) 1446(defun xref-find-apropos (pattern)
1447 "Find all meaningful symbols that match PATTERN. 1447 "Find all meaningful symbols that match PATTERN.
1448The argument has the same meaning as in `apropos'." 1448The argument has the same meaning as in `apropos'.
1449See `tags-apropos-additional-actions' for how to augment the
1450output of this command when the backend is etags."
1449 (interactive (list (read-string 1451 (interactive (list (read-string
1450 "Search for pattern (word list or regexp): " 1452 "Search for pattern (word list or regexp): "
1451 nil 'xref--read-pattern-history 1453 nil 'xref--read-pattern-history