GNU bug report logs -
#96
lgrep/rgrep not asking to save buffers
Previous Next
Reported by: Tom Tromey <tromey <at> redhat.com>
Date: Sat, 29 Mar 2008 21:35:03 UTC
Severity: wishlist
Tags: fixed, patch
Fixed in version 26.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Hugh Brown <aardvark <at> saintaardvarkthecarpeted.com>
> Date: Sun, 25 Jan 2015 07:54:07 -0800
> Cc: 96 <at> debbugs.gnu.org
>
> Hi there -- I'm submitting a patch for this bug. It applies cleanly
> against the HEAD of the master branch right now
> (f67446455fc0ec59f5c25c90a8783e571b60dc8f).
Thanks. Please provide a log entry for this.
> +(defcustom grep-ask-about-save t
> + "Non-nil means \\[grep], \\[lgrep] and \\[rgrep] ask which buffers to save before running.
> +Otherwise, it saves all modified buffers without asking."
> + :type 'boolean
> + :group 'grep)
Is there a way to get back the current behavior, i.e. not save any
buffers?
In any case, this is a change in user-visible behavior, so I think it
warrants a NEWS entry
Also, this defcustom lacks a :version keyword.
> +(defcustom grep-save-buffers-predicate nil
> + "The second argument (PRED) passed to `save-some-buffers' before compiling.
> +E.g., one can set this to
> + (lambda ()
> + (string-prefix-p my-grep-root (file-truename (buffer-file-name))))
> +to limit saving to files located under `my-grep-root'.
Did you consider letting grep-ask-about-save serve double duty, in
that it could also be a predicate function? I'm not saying this would
necessarily be better, I'm just asking why not.
This bug report was last modified 8 years and 227 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.