From 7547e4e60eb57051bc6fd4e74f1643f2760bba65 Mon Sep 17 00:00:00 2001 From: Visuwesh Date: Tue, 14 Jun 2022 22:59:47 +0530 Subject: [PATCH] repeat-mode: Don't echo unset keys in help message * repeat.el (repeat-echo-message-string): Check if the key is set. (bug#55977) --- lisp/repeat.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/repeat.el b/lisp/repeat.el index ea4e3d0bd81..94ea9f7ac1f 100644 --- a/lisp/repeat.el +++ b/lisp/repeat.el @@ -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))) -- 2.39.2