From 4b9b1ea6a091f41f3c0315762661b4dcc350564a Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sat, 2 Jul 2022 16:59:14 +0200 Subject: [PATCH] Use help-key-binding face in repeat-mode message * lisp/repeat.el (repeat-echo-message-string): Use substitute-command-keys. --- lisp/repeat.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/repeat.el b/lisp/repeat.el index fa65057a73f..6bbed954495 100644 --- a/lisp/repeat.el +++ b/lisp/repeat.el @@ -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" -- 2.39.2