aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorHugh Brown2016-02-29 16:20:05 +1100
committerLars Ingebrigtsen2016-02-29 16:20:05 +1100
commit90c36173fdcc7dbe1fa150784a4784a9c0cb7bbc (patch)
tree6a3dd4fbfcb4c0c0823406340aa915be6fd4c72a /etc
parent04289d1cd863fa8cc0c8a9b976a8e27d9a0b4dd1 (diff)
downloademacs-90c36173fdcc7dbe1fa150784a4784a9c0cb7bbc.tar.gz
emacs-90c36173fdcc7dbe1fa150784a4784a9c0cb7bbc.zip
Save buffers before running grep commands
* lisp/progmodes/grep.el (grep-ask-about-save): New variable (bug#96). (grep, lgrep, rgrep): Use it (bug#96). * doc/emacs/building.texi (Grep Searching): Document `grep-save-buffers'. * lisp/progmodes/grep.el (grep-save-buffers): Rename from `grep-ask-about-save'. (grep--save-buffers): New function. (grep, lgrep, rgrep): Use it.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 12b98fa989d..8c4fb63fbd4 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1676,6 +1676,10 @@ behavior, set `diff-switches' to `-c'.
1676dynamically. Any third-party code that changes these templates should 1676dynamically. Any third-party code that changes these templates should
1677be updated accordingly. 1677be updated accordingly.
1678 1678
1679** The grep/rgrep/lgrep functions will now ask about saving files
1680before running. This is controlled by the `grep-save-buffers'
1681variable.
1682
1679+++ 1683+++
1680** ‘(/ N)’ is now equivalent to ‘(/ 1 N)’ rather than to ‘(/ N 1)’. 1684** ‘(/ N)’ is now equivalent to ‘(/ 1 N)’ rather than to ‘(/ N 1)’.
1681The new behavior is compatible with Common Lisp and with XEmacs. 1685The new behavior is compatible with Common Lisp and with XEmacs.