unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13373: 24.3.50; doc string of `execute-extended-command' is incorrect
@ 2013-01-07  1:02 Drew Adams
  2013-01-07 21:27 ` Aaron S. Hawley
  2014-02-08 13:14 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 6+ messages in thread
From: Drew Adams @ 2013-01-07  1:02 UTC (permalink / raw)
  To: 13373

The doc string is incorrect and misleading in several ways.
 
 Read function name, then read its arguments and call it.
 
 To pass a numeric argument to the command you are invoking with, specify
 the numeric argument to this command.
 
 Noninteractively, the argument PREFIXARG is the prefix argument to
 give to the command you invoke, if it asks for an argument.
 
1. It is not just a function name that is read.  It is (it must be) a
COMMAND name, i.e., an interactive function.
 
2. `execute-extended-command' does NOT read the arguments of the
"function name" it reads.  First, a function NAME does not have any
arguments.  Second, it is the command so named that reads its own
arguments, if any are read.  `e-e-c' does nothing of the kind.
 
3. (What prompted me to write this bug report.)  It is not about passing
a "numeric argument" to the command invoked by `e-e-c'.  It is about
passing it THE prefix argument, in fact the RAW prefix argument.
 
There is a LOT of confusion in this doc string.  Almost everything it
says is wrong or misleading.
 

[Also:
 
4. There is no reason to skip a line after the first doc line.  That is
not the Emacs convention.
 
5. The second sentence is grammatically incorrect.  "...to the command
you are invoking with" - invoking WITH? invoking with what?
 
6. The third sentence is confusing.  "if it asks for an argument".  No
command ever asks the user for a prefix argument.  Presumably what is
meant is "if it accepts a prefix argument."
 
Anyway, the second and third sentences are verbose and somewhat
repetitive.]

 
In GNU Emacs 24.3.50.1 (i386-mingw-nt5.1.2600)
 of 2012-12-31 on ODIEONE
Bzr revision: 111388 rudalics@gmx.at-20121231113513-subz2dazg6yjukzh
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
 `configure --with-gcc (4.7) --no-opt --enable-checking --cflags
 -IC:/Devel/emacs/build/include --ldflags -LC:/Devel/emacs/build/lib'
 






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

end of thread, other threads:[~2014-02-08 13:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-07  1:02 bug#13373: 24.3.50; doc string of `execute-extended-command' is incorrect Drew Adams
2013-01-07 21:27 ` Aaron S. Hawley
2013-01-07 22:29   ` Drew Adams
2013-01-07 23:08     ` Aaron S. Hawley
2013-01-07 23:59       ` Drew Adams
2014-02-08 13:14 ` Lars Ingebrigtsen

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).