aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2016-04-03 19:46:50 +0200
committerLars Magne Ingebrigtsen2016-04-03 19:46:58 +0200
commita32eea60ac90d367435860fe3a10bf843e6f497c (patch)
treeaf270436d5b55079070f92e51dfa2b2f8b86e8fa /etc
parent1b33cd8e7e5c747afde29e10b5fe192c5a37b67a (diff)
downloademacs-a32eea60ac90d367435860fe3a10bf843e6f497c.tar.gz
emacs-a32eea60ac90d367435860fe3a10bf843e6f497c.zip
Add `r'/`l' grep command history commands
* doc/emacs/building.texi (Grep Searching): Mention the `r'/`l' commands. * lisp/progmodes/grep.el (grep-forward-history): New command. (grep-backward-history): Ditto. (grep--save-buffers): New function. (grep): Use it to record the history. (grep--command-history, grep--history-inhibit) (grep--history-place): New internal variables for the grep history (bug#22627).
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index d878228720e..88e101ee0f0 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -57,6 +57,10 @@ has been added. They are: 'file-attribute-type',
57** The new function 'buffer-hash' has been added, and can be used to 57** The new function 'buffer-hash' has been added, and can be used to
58compute a fash, non-consing hash of the contents of a buffer. 58compute a fash, non-consing hash of the contents of a buffer.
59 59
60+++
61** The grep mode now has a command history that you can access via the
62`r' and `l' commands.
63
60--- 64---
61** 'fill-paragraph' no longer marks the buffer as changed unless it 65** 'fill-paragraph' no longer marks the buffer as changed unless it
62actually changed something. 66actually changed something.
@@ -1807,6 +1811,7 @@ behavior, set 'diff-switches' to '-c'.
1807dynamically. Any third-party code that changes these templates should 1811dynamically. Any third-party code that changes these templates should
1808be updated accordingly. 1812be updated accordingly.
1809 1813
1814+++
1810** The grep/rgrep/lgrep functions will now ask about saving files 1815** The grep/rgrep/lgrep functions will now ask about saving files
1811before running. This is controlled by the 'grep-save-buffers' 1816before running. This is controlled by the 'grep-save-buffers'
1812variable. 1817variable.