summaryrefslogtreecommitdiff
path: root/doc/emacs/maintaining.texi
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2018-08-07 19:15:41 +0300
committerEli Zaretskii <eliz@gnu.org>2018-08-07 19:15:41 +0300
commitcd9032532d119b35685dc078b8156023122f6dcd (patch)
tree54f8add2f858436ae82f70b0c58ed42f4f8124bc /doc/emacs/maintaining.texi
parent155a885158c3ea7c2802d2a6c679cdee766a3b28 (diff)
downloademacs-cd9032532d119b35685dc078b8156023122f6dcd.tar.gz
Improve documentation of M-?
* doc/emacs/maintaining.texi (Identifier Search): * lisp/progmodes/xref.el (xref-find-references): Improve documentation of xref-find-references and xref-prompt-for-identifier. (Bug#32389)
Diffstat (limited to 'doc/emacs/maintaining.texi')
-rw-r--r--doc/emacs/maintaining.texi11
1 files changed, 8 insertions, 3 deletions
diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi
index 9421691ba76..d7d7eddf621 100644
--- a/doc/emacs/maintaining.texi
+++ b/doc/emacs/maintaining.texi
@@ -1966,9 +1966,14 @@ Restart one of the last 2 commands above, from the current location of point.
@kindex M-?
@findex xref-find-references
- @kbd{M-?} finds all the references for the identifier at point. If
-there's no identifier at point, or when invoked with a prefix
-argument, the command prompts for the identifier, with completion. It
+ @kbd{M-?} finds all the references for the identifier at point,
+prompting for the identifier as needed, with completion. Depending on
+the current backend (@pxref{Xref}), the command may prompt even if it
+finds a valid identifier at point. When invoked with a prefix
+argument, it always prompts for the identifier. (If you want it to
+prompt always, customize the value of the variable
+@code{xref-prompt-for-identifier} to @code{t}; or set it to @code{nil}
+to prompt only if there's no usable identifier at point.) The command
then presents the @file{*xref*} buffer with all the references to the
identifier, showing the file name and the line where the identifier is
referenced. The XREF mode commands are available in this buffer, see