unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#21754: 25.0.50; doc of `grep' - no description of how to call it: COMMAND-ARGS undefined
@ 2015-10-25 15:35 Drew Adams
  2015-10-25 20:06 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2015-10-25 15:35 UTC (permalink / raw)
  To: 21754



Here is the entire doc string:

  (grep COMMAND-ARGS)

  Run grep, with user-specified args, and collect output in a buffer.
  While grep runs asynchronously, you can use C-x ` (M-x next-error),
  or RET in the *grep* buffer, to go to the lines where grep found
  matches.  To kill the grep job before it finishes, type C-c C-k.

  For doing a recursive 'grep', see the 'rgrep' command.  For running
  '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
  list is empty).

There is _zero_ information here about parameter COMMAND-ARGS.
The Emacs and Elisp manuals offer no more help.

How is a user expected to call this function from Lisp?
Doc strings should _fully specify_ a function's parameters.


In GNU Emacs 25.0.50.1 (i686-pc-mingw32)
 of 2015-10-09
Bzr revision: af45926d66d303fdc4c2c3ebbc820b4a54d9e4a0
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --host=i686-pc-mingw32 --enable-checking=yes,glyphs'





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#21754: 25.0.50; doc of `grep' - no description of how to call it: COMMAND-ARGS undefined
  2015-10-25 15:35 bug#21754: 25.0.50; doc of `grep' - no description of how to call it: COMMAND-ARGS undefined Drew Adams
@ 2015-10-25 20:06 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2015-10-25 20:06 UTC (permalink / raw)
  To: Drew Adams; +Cc: 21754-done

> Date: Sun, 25 Oct 2015 08:35:00 -0700 (PDT)
> From: Drew Adams <drew.adams@oracle.com>
> 
> 
> 
> Here is the entire doc string:
> 
>   (grep COMMAND-ARGS)
> 
>   Run grep, with user-specified args, and collect output in a buffer.
>   While grep runs asynchronously, you can use C-x ` (M-x next-error),
>   or RET in the *grep* buffer, to go to the lines where grep found
>   matches.  To kill the grep job before it finishes, type C-c C-k.
> 
>   For doing a recursive 'grep', see the 'rgrep' command.  For running
>   '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
>   list is empty).
> 
> There is _zero_ information here about parameter COMMAND-ARGS.

Thanks, fixed.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-25 20:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-25 15:35 bug#21754: 25.0.50; doc of `grep' - no description of how to call it: COMMAND-ARGS undefined Drew Adams
2015-10-25 20:06 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).