diff options
author | Juri Linkov <juri@linkov.net> | 2021-11-15 19:53:29 +0200 |
---|---|---|
committer | Juri Linkov <juri@linkov.net> | 2021-11-15 19:53:29 +0200 |
commit | b418aad85a3d62aa427e7af72c96ca1d644dbc02 (patch) | |
tree | f35638df153c4ff1dbcf97434c89403e679851e4 /lisp/repeat.el | |
parent | fe2ac7cb7cf206c86f80304906beb58302c0d31f (diff) | |
download | emacs-b418aad85a3d62aa427e7af72c96ca1d644dbc02.tar.gz emacs-b418aad85a3d62aa427e7af72c96ca1d644dbc02.tar.bz2 emacs-b418aad85a3d62aa427e7af72c96ca1d644dbc02.zip |
* lisp/repeat.el (repeat-echo-message): Bind message-log-max to nil.
Don't insert messages about repeatable keys in the *Messages* buffer.
Diffstat (limited to 'lisp/repeat.el')
-rw-r--r-- | lisp/repeat.el | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/lisp/repeat.el b/lisp/repeat.el index 96ea8a02501..45201ad1aa6 100644 --- a/lisp/repeat.el +++ b/lisp/repeat.el @@ -481,19 +481,20 @@ See `describe-repeat-maps' for a list of all repeatable commands." (defun repeat-echo-message (keymap) "Display available repeating keys in the echo area." - (if keymap - (let ((message (repeat-echo-message-string keymap))) - (if (current-message) - (message "%s [%s]" (current-message) message) - (message "%s" message))) - (let ((message (current-message))) - (when message - (cond - ((string-prefix-p "Repeat with " message) - (message nil)) - ((string-search " [Repeat with " message) - (message "%s" (replace-regexp-in-string - " \\[Repeat with .*\\'" "" message)))))))) + (let ((message-log-max nil)) + (if keymap + (let ((message (repeat-echo-message-string keymap))) + (if (current-message) + (message "%s [%s]" (current-message) message) + (message "%s" message))) + (let ((message (current-message))) + (when message + (cond + ((string-prefix-p "Repeat with " message) + (message nil)) + ((string-search " [Repeat with " message) + (message "%s" (replace-regexp-in-string + " \\[Repeat with .*\\'" "" message))))))))) (defvar repeat-echo-mode-line-string (propertize "[Repeating...] " 'face 'mode-line-emphasis) |