aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man/building.texi26
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
50Invoke a compiler with the same command as in the last invocation of 50Invoke 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
53Run @code{grep} asynchronously under Emacs, with matching lines
54listed in the buffer named @samp{*grep*}.
55@item M-x grep-find
56@itemx M-x find-grep
57Run @code{grep} via @code{find}, with user-specified arguments, and
58collect 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 53Kill the running compilation subprocess.
61Kill 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
329with compilation errors, you can also run @code{grep} and 320with compilation errors, you can also run @code{grep} and
330then visit the lines on which matches were found. This works by 321then visit the lines on which matches were found. This works by
331treating the matches reported by @code{grep} as if they were ``errors.'' 322treating 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
326Run @code{grep} asynchronously under Emacs, with matching lines
327listed in the buffer named @samp{*grep*}.
328@item M-x grep-find
329@itemx M-x find-grep
330Run @code{grep} via @code{find}, with user-specified arguments, and
331collect output in the buffer named @samp{*grep*}.
332@item M-x kill-grep
333Kill 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
334specifies how to run @code{grep}. Use the same arguments you would give 338specifies 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)