summaryrefslogtreecommitdiff
path: root/lisp/progmodes/xref.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2018-09-19 10:54:41 +0300
committerEli Zaretskii <eliz@gnu.org>2018-09-19 10:54:41 +0300
commit85af51bab161473afed53517a81c2c3fb1f24b7c (patch)
tree37ec0b1ea1ec6b844ba2ecb3f8a8be630ebecf7d /lisp/progmodes/xref.el
parent72a2a36654d5f73624986d8f92d7745d58c3d500 (diff)
downloademacs-85af51bab161473afed53517a81c2c3fb1f24b7c.tar.gz
Improve Custom menu labels for 2 options
* lisp/dired.el (dired-use-ls-dired): * lisp/progmodes/xref.el (xref-prompt-for-identifier): Improve the doc string and the defcustom menu/tags text. (Bug#32756)
Diffstat (limited to 'lisp/progmodes/xref.el')
-rw-r--r--lisp/progmodes/xref.el20
1 files changed, 11 insertions, 9 deletions
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index e563951793f..abb2a93425d 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -323,21 +323,23 @@ backward."
(defcustom xref-prompt-for-identifier '(not xref-find-definitions
xref-find-definitions-other-window
xref-find-definitions-other-frame)
- "When t, always prompt for the identifier name.
+ "If non-nil, prompt for the identifier to find.
+
+When t, always prompt for the identifier name.
When nil, prompt only when there's no value at point we can use,
or when the command has been called with the prefix argument.
-Otherwise, it's a list of xref commands which will prompt
-anyway (the value at point, if any, will be used as the default).
-
+Otherwise, it's a list of xref commands which will always prompt,
+with the identifier at point, if any, used as the default.
If the list starts with `not', the meaning of the rest of the
-elements is negated."
- :type '(choice (const :tag "always" t)
- (const :tag "auto" nil)
- (set :menu-tag "command specific" :tag "commands"
+elements is negated: these commands will NOT prompt."
+ :type '(choice (const :tag "Always prompt for identifier" t)
+ (const :tag "Prompt if no identifier at point" nil)
+ (set :menu-tag "Prompt according to command"
+ :tag "Prompt according to command"
:value (not)
- (const :tag "Except" not)
+ (const :tag "Except for commands listed below" not)
(repeat :inline t (symbol :tag "command")))))
(defcustom xref-after-jump-hook '(recenter