unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#43749: 26.1: simple.el: command-execute docstring [PATCH]
@ 2020-10-01 17:48 Boruch Baum
  2020-10-01 18:26 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Boruch Baum @ 2020-10-01 17:48 UTC (permalink / raw)
  To: 43749

[-- Attachment #1: Type: text/plain, Size: 256 bytes --]

The docstring was using a non-standard form of reference for function
'this-command-keys', so function describe-command was unable to
auto-magically construct a link to it.

--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0

[-- Attachment #2: simple.patch --]
[-- Type: text/x-diff, Size: 1453 bytes --]

diff --git a/simple.el b/simple.el
index 9483170..a03363f 100644
--- a/simple.el
+++ b/simple.el
@@ -1814,13 +1814,14 @@ invoking, give a prefix argument to `execute-extended-command'."
   ;; BEWARE: Called directly from the C code.
   "Execute CMD as an editor command.
 CMD must be a symbol that satisfies the `commandp' predicate.
-Optional second arg RECORD-FLAG non-nil
-means unconditionally put this command in the variable `command-history'.
-Otherwise, that is done only if an arg is read using the minibuffer.
-The argument KEYS specifies the value to use instead of (this-command-keys)
-when reading the arguments; if it is nil, (this-command-keys) is used.
-The argument SPECIAL, if non-nil, means that this command is executing
-a special event, so ignore the prefix argument and don't clear it."
+Optional second arg RECORD-FLAG non-nil means unconditionally put
+this command in the variable `command-history'. Otherwise, that
+is done only if an arg is read using the minibuffer. The argument
+KEYS specifies the value to use instead of the return value of
+function `this-command-keys' when reading the arguments; if it is
+nil, `this-command-keys' is used. The argument SPECIAL, if
+non-nil, means that this command is executing a special event, so
+ignore the prefix argument and don't clear it."
   (setq debug-on-next-call nil)
   (let ((prefixarg (unless special
                      ;; FIXME: This should probably be done around

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

* bug#43749: 26.1: simple.el: command-execute docstring [PATCH]
  2020-10-01 17:48 bug#43749: 26.1: simple.el: command-execute docstring [PATCH] Boruch Baum
@ 2020-10-01 18:26 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2020-10-01 18:26 UTC (permalink / raw)
  To: Boruch Baum; +Cc: 43749

Boruch Baum <boruch_baum@gmx.com> writes:

> The docstring was using a non-standard form of reference for function
> 'this-command-keys', so function describe-command was unable to
> auto-magically construct a link to it.

Thanks; applied to Emacs 28 (with some changes).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2020-10-01 18:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-01 17:48 bug#43749: 26.1: simple.el: command-execute docstring [PATCH] Boruch Baum
2020-10-01 18:26 ` 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).