1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-26 10:49:33 +00:00

* lisp/progmodes/grep.el (grep-save-buffers): Fix type, tweak doc.

This commit is contained in:
Glenn Morris 2016-02-29 08:51:12 -08:00
parent cffe077b76
commit 938f104f1b

View File

@ -229,20 +229,18 @@ to determine whether cdr should not be excluded."
(defcustom grep-save-buffers 'ask (defcustom grep-save-buffers 'ask
"If non-nil, save buffers before running the grep commands. "If non-nil, save buffers before running the grep commands.
If `ask', ask before saving. If the variable is a function, it If `ask', ask before saving. If a function, call it with no arguments
will be used as a predicate that should say whether the buffer should with each buffer current, as a predicate to determine whether that
be saved or not. buffer should be saved or not. E.g., one can set this to
E.g., one can set this to
(lambda () (lambda ()
(string-prefix-p my-grep-root (file-truename (buffer-file-name)))) (string-prefix-p my-grep-root (file-truename (buffer-file-name))))
to limit saving to files located under `my-grep-root'." to limit saving to files located under `my-grep-root'."
:version "25.2" :version "25.2"
:type '(choice :type '(choice
(const :tag "Default (ask before saving)" ask) (const :tag "Ask before saving" ask)
(const :tag "Don't save buffers" nil) (const :tag "Don't save buffers" nil)
(const :tag "Save all buffers" t) function
function) (other :tag "Save all buffers" t))
:type 'boolean
:group 'grep) :group 'grep)
(defcustom grep-error-screen-columns nil (defcustom grep-error-screen-columns nil