From ae31dd53069ad71772387f8abed3ebf2e1b54b5a Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Sun, 3 Jul 2022 20:02:02 +0300 Subject: [PATCH] Use more help-key-binding faces in repeat-mode message * lisp/repeat.el (repeat-echo-message-string): Use substitute-command-keys for repeat-exit-key as well. --- lisp/repeat.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/repeat.el b/lisp/repeat.el index 6bbed954495..608f7aaf987 100644 --- a/lisp/repeat.el +++ b/lisp/repeat.el @@ -508,8 +508,9 @@ See `describe-repeat-maps' for a list of all repeatable commands." (key-description (vector key))))) keys ", ") (if repeat-exit-key - (format ", or exit with %s" - (key-description repeat-exit-key)) + (substitute-command-keys + (format ", or exit with \\`%s'" + (key-description repeat-exit-key))) "")))) (defun repeat-echo-message (keymap) -- 2.39.2