diff options
| author | Lars Magne Ingebrigtsen | 2016-04-03 19:46:50 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2016-04-03 19:46:58 +0200 |
| commit | a32eea60ac90d367435860fe3a10bf843e6f497c (patch) | |
| tree | af270436d5b55079070f92e51dfa2b2f8b86e8fa /etc | |
| parent | 1b33cd8e7e5c747afde29e10b5fe192c5a37b67a (diff) | |
| download | emacs-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/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -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 |
| 58 | compute a fash, non-consing hash of the contents of a buffer. | 58 | compute 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 |
| 62 | actually changed something. | 66 | actually changed something. |
| @@ -1807,6 +1811,7 @@ behavior, set 'diff-switches' to '-c'. | |||
| 1807 | dynamically. Any third-party code that changes these templates should | 1811 | dynamically. Any third-party code that changes these templates should |
| 1808 | be updated accordingly. | 1812 | be 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 |
| 1811 | before running. This is controlled by the 'grep-save-buffers' | 1816 | before running. This is controlled by the 'grep-save-buffers' |
| 1812 | variable. | 1817 | variable. |