[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 8c252e2326: Fix execute-extended-command help text for remapped c
From: |
Lars Ingebrigtsen |
Subject: |
master 8c252e2326: Fix execute-extended-command help text for remapped commands |
Date: |
Mon, 6 Jun 2022 10:43:32 -0400 (EDT) |
branch: master
commit 8c252e2326a3f633d281d70d2f9e7e75975ebdab
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Fix execute-extended-command help text for remapped commands
* lisp/simple.el (execute-extended-command): Don't provide
misleading help text for remapped commands (bug#23543).
---
lisp/simple.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lisp/simple.el b/lisp/simple.el
index ac41b394a7..f6932339c9 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2450,6 +2450,11 @@ invoking, give a prefix argument to
`execute-extended-command'."
(find-shorter nil))
(unless (commandp function)
(error "`%s' is not a valid command name" command-name))
+ ;; If we're executing a command that's remapped, we can't actually
+ ;; execute that command with the keymapping we've found with
+ ;; `where-is-internal'.
+ (when (and binding (command-remapping function))
+ (setq binding nil))
;; Some features, such as novice.el, rely on this-command-keys
;; including M-x COMMAND-NAME RET.
(set--this-command-keys (concat "\M-x" (symbol-name function) "\r"))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 8c252e2326: Fix execute-extended-command help text for remapped commands,
Lars Ingebrigtsen <=