diff options
| author | Eshel Yaron | 2023-02-14 09:18:37 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2024-01-10 23:48:24 +0100 |
| commit | 9eed00c8e5ac697203dc24331c60bd2bb0b90b5d (patch) | |
| tree | 055bcba5dbd0057c4b6ec5a10f68f3dfab6f2dd6 | |
| parent | c12166de380397168e374931c4e59bbb3a09bf21 (diff) | |
| download | emacs-9eed00c8e5ac697203dc24331c60bd2bb0b90b5d.tar.gz emacs-9eed00c8e5ac697203dc24331c60bd2bb0b90b5d.zip | |
Handle anonymous commands in C-h K
* lisp/info.el (Info-goto-emacs-key-command-node): Don't call
Info-goto-emacs-command-node for anonymous commands. (Bug#61505)
| -rw-r--r-- | lisp/info.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/info.el b/lisp/info.el index f4384934155..02ba8b0eff9 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -4733,8 +4733,11 @@ the variable `Info-file-list-for-emacs'." | |||
| 4733 | (eq command 'execute-extended-command)) | 4733 | (eq command 'execute-extended-command)) |
| 4734 | (Info-goto-emacs-command-node | 4734 | (Info-goto-emacs-command-node |
| 4735 | (read-command "Find documentation for command: "))) | 4735 | (read-command "Find documentation for command: "))) |
| 4736 | ((symbolp command) | ||
| 4737 | (Info-goto-emacs-command-node command)) | ||
| 4736 | (t | 4738 | (t |
| 4737 | (Info-goto-emacs-command-node command))))) | 4739 | (message "%s invokes an anonymous command" |
| 4740 | (key-description key)))))) | ||
| 4738 | 4741 | ||
| 4739 | (defvar Info-link-keymap | 4742 | (defvar Info-link-keymap |
| 4740 | (let ((keymap (make-sparse-keymap))) | 4743 | (let ((keymap (make-sparse-keymap))) |