1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 16:51:06 -07:00

repeat-mode: Don't echo unset keys in help message

* repeat.el (repeat-echo-message-string): Check if the key is set.
(bug#55977)
This commit is contained in:
Visuwesh 2022-06-14 22:59:47 +05:30 committed by Juri Linkov
parent 36f96c351a
commit 7547e4e60e

View file

@ -500,7 +500,7 @@ See `describe-repeat-maps' for a list of all repeatable commands."
(defun repeat-echo-message-string (keymap)
"Return a string with a list of repeating keys."
(let (keys)
(map-keymap (lambda (key _) (push key keys)) keymap)
(map-keymap (lambda (key cmd) (and cmd (push key keys))) keymap)
(format-message "Repeat with %s%s"
(mapconcat (lambda (key)
(key-description (vector key)))