diff options
| -rw-r--r-- | man/building.texi | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/man/building.texi b/man/building.texi index fabf2a58b41..6e6828c0409 100644 --- a/man/building.texi +++ b/man/building.texi | |||
| @@ -49,16 +49,8 @@ the @samp{*compilation*} buffer. | |||
| 49 | @item M-x recompile | 49 | @item M-x recompile |
| 50 | Invoke a compiler with the same command as in the last invocation of | 50 | Invoke a compiler with the same command as in the last invocation of |
| 51 | @kbd{M-x compile}. | 51 | @kbd{M-x compile}. |
| 52 | @item M-x grep | ||
| 53 | Run @code{grep} asynchronously under Emacs, with matching lines | ||
| 54 | listed in the buffer named @samp{*grep*}. | ||
| 55 | @item M-x grep-find | ||
| 56 | @itemx M-x find-grep | ||
| 57 | Run @code{grep} via @code{find}, with user-specified arguments, and | ||
| 58 | collect output in the buffer named @samp{*grep*}. | ||
| 59 | @item M-x kill-compilation | 52 | @item M-x kill-compilation |
| 60 | @itemx M-x kill-grep | 53 | Kill the running compilation subprocess. |
| 61 | Kill the running compilation or @code{grep} subprocess. | ||
| 62 | @end table | 54 | @end table |
| 63 | 55 | ||
| 64 | @findex compile | 56 | @findex compile |
| @@ -324,13 +316,25 @@ Emacs. @xref{MS-DOS}. | |||
| 324 | @node Grep Searching | 316 | @node Grep Searching |
| 325 | @section Searching with Grep under Emacs | 317 | @section Searching with Grep under Emacs |
| 326 | 318 | ||
| 327 | @findex grep | ||
| 328 | Just as you can run a compiler from Emacs and then visit the lines | 319 | Just as you can run a compiler from Emacs and then visit the lines |
| 329 | with compilation errors, you can also run @code{grep} and | 320 | with compilation errors, you can also run @code{grep} and |
| 330 | then visit the lines on which matches were found. This works by | 321 | then visit the lines on which matches were found. This works by |
| 331 | treating the matches reported by @code{grep} as if they were ``errors.'' | 322 | treating the matches reported by @code{grep} as if they were ``errors.'' |
| 332 | 323 | ||
| 333 | To do this, type @kbd{M-x grep}, then enter a command line that | 324 | @table @kbd |
| 325 | @item M-x grep | ||
| 326 | Run @code{grep} asynchronously under Emacs, with matching lines | ||
| 327 | listed in the buffer named @samp{*grep*}. | ||
| 328 | @item M-x grep-find | ||
| 329 | @itemx M-x find-grep | ||
| 330 | Run @code{grep} via @code{find}, with user-specified arguments, and | ||
| 331 | collect output in the buffer named @samp{*grep*}. | ||
| 332 | @item M-x kill-grep | ||
| 333 | Kill the running @code{grep} subprocess. | ||
| 334 | @end table | ||
| 335 | |||
| 336 | @findex grep | ||
| 337 | To run @code{grep}, type @kbd{M-x grep}, then enter a command line that | ||
| 334 | specifies how to run @code{grep}. Use the same arguments you would give | 338 | specifies how to run @code{grep}. Use the same arguments you would give |
| 335 | @code{grep} when running it normally: a @code{grep}-style regexp | 339 | @code{grep} when running it normally: a @code{grep}-style regexp |
| 336 | (usually in single-quotes to quote the shell's special characters) | 340 | (usually in single-quotes to quote the shell's special characters) |