(help--append-keystrokes-help): Fix bug#76341
* lisp/help.el (help--append-keystrokes-help): Silence the help message when there is no help key.
This commit is contained in:
parent
1ffa052113
commit
c830caab2c
1 changed files with 11 additions and 12 deletions
23
lisp/help.el
23
lisp/help.el
|
|
@ -2200,18 +2200,17 @@ The `temp-buffer-window-setup-hook' hook is called."
|
|||
(current-active-maps t)))))
|
||||
(catch 'res
|
||||
(dolist (val help-event-list)
|
||||
(let ((key (vector (if (eql val 'help)
|
||||
help-char
|
||||
val))))
|
||||
(unless (seq-find (lambda (map) (and (keymapp map) (lookup-key map key)))
|
||||
bindings)
|
||||
(throw 'res
|
||||
(concat
|
||||
str
|
||||
(substitute-command-keys
|
||||
(format
|
||||
" (\\`%s' for help)"
|
||||
(key-description key))))))))
|
||||
(when (setq val (if (eql val 'help) help-char val))
|
||||
(let ((key (vector val)))
|
||||
(unless (seq-find (lambda (map) (and (keymapp map) (lookup-key map key)))
|
||||
bindings)
|
||||
(throw 'res
|
||||
(concat
|
||||
str
|
||||
(substitute-command-keys
|
||||
(format
|
||||
" (\\`%s' for help)"
|
||||
(key-description key)))))))))
|
||||
str)))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue