]> git.eshelyaron.com Git - emacs.git/commitdiff
Use help-key-binding face in repeat-mode message
authorStefan Kangas <stefan@marxist.se>
Sat, 2 Jul 2022 14:59:14 +0000 (16:59 +0200)
committerStefan Kangas <stefan@marxist.se>
Sat, 2 Jul 2022 15:09:22 +0000 (17:09 +0200)
* lisp/repeat.el (repeat-echo-message-string): Use
substitute-command-keys.

lisp/repeat.el

index fa65057a73f29b247b35212a022bb604d8be3e98..6bbed95449592e849635c60cfd451ecdbe547c17 100644 (file)
@@ -503,7 +503,9 @@ See `describe-repeat-maps' for a list of all repeatable commands."
     (map-keymap (lambda (key cmd) (and cmd (push key keys))) keymap)
     (format-message "Repeat with %s%s"
                     (mapconcat (lambda (key)
-                                 (key-description (vector key)))
+                                 (substitute-command-keys
+                                  (format "\\`%s'"
+                                          (key-description (vector key)))))
                                keys ", ")
                     (if repeat-exit-key
                         (format ", or exit with %s"