From: Eli Zaretskii Date: Sun, 25 Oct 2015 20:05:44 +0000 (+0200) Subject: * lisp/progmodes/grep.el (grep): Doc fix. (Bug#21754) X-Git-Tag: emacs-25.0.90~1013 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ecb069e2f6107aed8983323fb9dede76414b56d8;p=emacs.git * lisp/progmodes/grep.el (grep): Doc fix. (Bug#21754) --- diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index 452a42f4bc2..efecd21a92a 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el @@ -731,21 +731,24 @@ This function is called from `compilation-filter-hook'." ;;;###autoload (defun grep (command-args) - "Run grep, with user-specified args, and collect output in a buffer. -While grep runs asynchronously, you can use \\[next-error] (M-x next-error), + "Run Grep with user-specified COMMAND-ARGS, collect output in a buffer. +While Grep runs asynchronously, you can use \\[next-error] (M-x next-error), or \\\\[compile-goto-error] in the *grep* \ -buffer, to go to the lines where grep found -matches. To kill the grep job before it finishes, type \\[kill-compilation]. +buffer, to go to the lines where Grep found +matches. To kill the Grep job before it finishes, type \\[kill-compilation]. + +Noninteractively, COMMAND-ARGS should specify the Grep command-line +arguments. For doing a recursive `grep', see the `rgrep' command. For running -`grep' in a specific directory, see `lgrep'. +Grep in a specific directory, see `lgrep'. This command uses a special history list for its COMMAND-ARGS, so you can easily repeat a grep command. -A prefix argument says to default the argument based upon the current -tag the cursor is over, substituting it into the last grep command -in the grep command history (or into `grep-command' if that history +A prefix argument says to default the COMMAND-ARGS based on the current +tag the cursor is over, substituting it into the last Grep command +in the Grep command history (or into `grep-command' if that history list is empty)." (interactive (progn