Handle nil messages in repeat-echo-message.

* lisp/repeat.el (repeat-echo-message): Handle cases where
'current-message' is nil (bug#50176).
This commit is contained in:
Gabriel do Nascimento Ribeiro 2021-08-24 11:23:49 -03:00 committed by Juri Linkov
parent 7db376e560
commit 46ff443dc0

View file

@ -474,8 +474,9 @@ When Repeat mode is enabled, and the command symbol has the property named
(if (current-message)
(message "%s [%s]" (current-message) mess)
(message mess)))
(when (string-search "Repeat with " (current-message))
(message nil))))
(and (current-message)
(string-search "Repeat with " (current-message))
(message nil))))
(defvar repeat-echo-mode-line-string
(propertize "[Repeating...] " 'face 'mode-line-emphasis)