summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-08-22 16:27:17 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-08-22 16:27:17 +0200
commit811f5890f3ad9b35464c5ccd818091abcaf6803d (patch)
treed97977cbbd245ca8d08d3adf8319b41d030d16e3 /lisp
parent3183259481992af4e5dc2b31dee1ad844a054e5a (diff)
downloademacs-811f5890f3ad9b35464c5ccd818091abcaf6803d.tar.gz
Doc string (and defcustom type) fix for grep-find-command
* lisp/progmodes/grep.el (grep-find-command): Add the cons type to the defcustom, and document it (bug#36113). (It has always been a valid value for the variable.)
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/grep.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index 7731be59659..287f43d358c 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -168,8 +168,14 @@ This is done to disambiguate file names in `grep's output."
"The default find command for \\[grep-find].
In interactive usage, the actual value of this variable is set up
by `grep-compute-defaults'; to change the default value, use
-\\[customize] or call the function `grep-apply-setting'."
+\\[customize] or call the function `grep-apply-setting'.
+
+This variable can either be a string, or a cons on the
+form (COMMAND . POSITION). In the latter case, COMMAND will be
+used as the default command, and point will be placed on POSITION
+for easier editing."
:type '(choice string
+ (cons string integer)
(const :tag "Not Set" nil))
:set #'grep-apply-setting)