From 811f5890f3ad9b35464c5ccd818091abcaf6803d Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 22 Aug 2020 16:27:17 +0200 Subject: [PATCH] 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.) --- lisp/progmodes/grep.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) -- 2.39.2