diff options
| author | Kim F. Storm | 2006-04-28 23:42:45 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2006-04-28 23:42:45 +0000 |
| commit | b5eb27b30d5abce362ee4653b96df8f31ba0c1db (patch) | |
| tree | a5e1a97fee7dbca37f43388e8fb397cfc3cbb460 | |
| parent | 6b2db6f1f60dea4f8e8b173db3c5a43423cc9fbe (diff) | |
| download | emacs-b5eb27b30d5abce362ee4653b96df8f31ba0c1db.tar.gz emacs-b5eb27b30d5abce362ee4653b96df8f31ba0c1db.zip | |
(Grep Searching): Add lgrep and rgrep.
| -rw-r--r-- | man/building.texi | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/man/building.texi b/man/building.texi index cc5e667f1c3..57ecbeb2a5b 100644 --- a/man/building.texi +++ b/man/building.texi | |||
| @@ -335,10 +335,12 @@ treating the matches reported by @code{grep} as if they were ``errors.'' | |||
| 335 | 335 | ||
| 336 | @table @kbd | 336 | @table @kbd |
| 337 | @item M-x grep | 337 | @item M-x grep |
| 338 | @item M-x lgrep | ||
| 338 | Run @code{grep} asynchronously under Emacs, with matching lines | 339 | Run @code{grep} asynchronously under Emacs, with matching lines |
| 339 | listed in the buffer named @samp{*grep*}. | 340 | listed in the buffer named @samp{*grep*}. |
| 340 | @item M-x grep-find | 341 | @item M-x grep-find |
| 341 | @itemx M-x find-grep | 342 | @itemx M-x find-grep |
| 343 | @itemx M-x rgrep | ||
| 342 | Run @code{grep} via @code{find}, with user-specified arguments, and | 344 | Run @code{grep} via @code{find}, with user-specified arguments, and |
| 343 | collect output in the buffer named @samp{*grep*}. | 345 | collect output in the buffer named @samp{*grep*}. |
| 344 | @item M-x kill-grep | 346 | @item M-x kill-grep |
| @@ -373,6 +375,27 @@ initial default for the command---one that runs both @code{find} and | |||
| 373 | @code{grep}, so as to search every file in a directory tree. See also | 375 | @code{grep}, so as to search every file in a directory tree. See also |
| 374 | the @code{find-grep-dired} command, in @ref{Dired and Find}. | 376 | the @code{find-grep-dired} command, in @ref{Dired and Find}. |
| 375 | 377 | ||
| 378 | @findex lgrep | ||
| 379 | @findex rgrep | ||
| 380 | The commands @kbd{M-x lgrep} (local grep) and @kbd{M-x rgrep} | ||
| 381 | (recursive grep) are more user-friendly versions of @code{grep} and | ||
| 382 | @code{grep-find}, which prompt separately for the regular expression | ||
| 383 | to match, the files to search, and the base directory for the search | ||
| 384 | (rgrep only). Case sensitivitivy of the search is controlled by the | ||
| 385 | current value of @code{case-fold-search}. | ||
| 386 | |||
| 387 | These commands build the shell commands based on the variables | ||
| 388 | @code{grep-template} (for @code{lgrep}) and @code{grep-find-template} | ||
| 389 | (for @code{rgrep}). | ||
| 390 | |||
| 391 | The files to search can use aliases defined in the variable | ||
| 392 | @code{grep-files-aliases}. | ||
| 393 | |||
| 394 | Subdirectories listed in the variable | ||
| 395 | @code{grep-find-ignored-directories} such as those typically used by | ||
| 396 | various version control systems, like CVS and arch, are automatically | ||
| 397 | skipped by @code{rgrep}. | ||
| 398 | |||
| 376 | @node Flymake | 399 | @node Flymake |
| 377 | @section Finding Syntax Errors On The Fly | 400 | @section Finding Syntax Errors On The Fly |
| 378 | @cindex checking syntax | 401 | @cindex checking syntax |
| @@ -676,7 +699,7 @@ This key is available only in the GUD interaction buffer. | |||
| 676 | @kindex C-c C-f @r{(GUD)} | 699 | @kindex C-c C-f @r{(GUD)} |
| 677 | @itemx C-x C-a C-f | 700 | @itemx C-x C-a C-f |
| 678 | @findex gud-finish | 701 | @findex gud-finish |
| 679 | Run the program until the selected stack frame returns or | 702 | Run the program until the selected stack frame returns or |
| 680 | stops for some other reason (@code{gud-finish}). | 703 | stops for some other reason (@code{gud-finish}). |
| 681 | 704 | ||
| 682 | @item C-x C-a C-j | 705 | @item C-x C-a C-j |