From 54dd147ac382d97eb56672dec8e4e4993f80a343 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 8 Feb 2014 05:13:46 -0800 Subject: [PATCH] (execute-extended-command): Clarify doc string (bug#13373). --- lisp/ChangeLog | 1 + lisp/simple.el | 10 ++++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f18a55ce202..0ddce4d9d2d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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). diff --git a/lisp/simple.el b/lisp/simple.el index 7576a6861fc..0a96cd9378b 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -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 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) -- 2.39.2