emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Juri Linkov
Subject: master 7547e4e60e: repeat-mode: Don't echo unset keys in help message
Date: Wed, 15 Jun 2022 03:25:04 -0400 (EDT)

branch: master
commit 7547e4e60eb57051bc6fd4e74f1643f2760bba65
Author: Visuwesh <visuweshm@gmail.com>
Commit: Juri Linkov <juri@linkov.net>

    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 ea4e3d0bd8..94ea9f7ac1 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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]