(execute-extended-command): Clarify doc string (bug#13373).

This commit is contained in:
Lars Ingebrigtsen 2014-02-08 05:13:46 -08:00
parent 6fbf6c29f4
commit 54dd147ac3
2 changed files with 5 additions and 6 deletions

View file

@ -2,6 +2,7 @@
* simple.el (choose-completion-string-functions): Document new
calling convention (bug#14153).
(execute-extended-command): Clarify doc string (bug#13373).
* kmacro.el (kmacro-exec-ring-item): Doc fix (bug#14198).

View file

@ -1567,13 +1567,11 @@ If the value is non-nil and not a number, we wait 2 seconds."
(defun execute-extended-command (prefixarg &optional command-name)
;; Based on Fexecute_extended_command in keyboard.c of Emacs.
;; Aaron S. Hawley <aaron.s.hawley(at)gmail.com> 2009-08-24
"Read function name, then read its arguments and call it.
To pass a numeric argument to the command you are invoking, specify
the numeric argument to this command.
"Read a command name, then read the arguments and call the command.
Interactively, to pass a prefix argument to the command you are
invoking, give a prefix argument to `execute-extended-command'.
Noninteractively, the argument PREFIXARG is the prefix argument to
give to the command you invoke, if it asks for an argument."
give to the command you invoke."
(interactive (list current-prefix-arg (read-extended-command)))
;; Emacs<24 calling-convention was with a single `prefixarg' argument.
(if (null command-name)