aboutsummaryrefslogtreecommitdiffstats
path: root/doc
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 /doc
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 'doc')
-rw-r--r--doc/emacs/building.texi7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi
index 03fa0ed83b2..059c7cae89c 100644
--- a/doc/emacs/building.texi
+++ b/doc/emacs/building.texi
@@ -390,6 +390,13 @@ is called with the file name as the parameter and should return
390non-nil if the buffer is to be saved), and any other non-@code{nil} 390non-nil if the buffer is to be saved), and any other non-@code{nil}
391value means that all buffers should be saved without asking. 391value means that all buffers should be saved without asking.
392 392
393 In addition to the normal compilation mode commands (for
394next/previous match and so on), two additional commands are available
395for accessing the @command{grep} command history. @kbd{l}
396(@code{grep-backward-history}) will re-run successively the previous
397@command{grep} commands, and @kbd{r} (@code{grep-forward-history}
398will go ``forward'' in the command history.
399
393@findex grep-find 400@findex grep-find
394@findex find-grep 401@findex find-grep
395 The command @kbd{M-x grep-find} (also available as @kbd{M-x 402 The command @kbd{M-x grep-find} (also available as @kbd{M-x