diff options
| author | Hugh Brown | 2016-02-29 16:20:05 +1100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-02-29 16:20:05 +1100 |
| commit | 90c36173fdcc7dbe1fa150784a4784a9c0cb7bbc (patch) | |
| tree | 6a3dd4fbfcb4c0c0823406340aa915be6fd4c72a /etc | |
| parent | 04289d1cd863fa8cc0c8a9b976a8e27d9a0b4dd1 (diff) | |
| download | emacs-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/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -1676,6 +1676,10 @@ behavior, set `diff-switches' to `-c'. | |||
| 1676 | dynamically. Any third-party code that changes these templates should | 1676 | dynamically. Any third-party code that changes these templates should |
| 1677 | be updated accordingly. | 1677 | be updated accordingly. |
| 1678 | 1678 | ||
| 1679 | ** The grep/rgrep/lgrep functions will now ask about saving files | ||
| 1680 | before running. This is controlled by the `grep-save-buffers' | ||
| 1681 | variable. | ||
| 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)’. |
| 1681 | The new behavior is compatible with Common Lisp and with XEmacs. | 1685 | The new behavior is compatible with Common Lisp and with XEmacs. |