[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 46ff443: Handle nil messages in repeat-echo-message.
From: |
Juri Linkov |
Subject: |
master 46ff443: Handle nil messages in repeat-echo-message. |
Date: |
Wed, 25 Aug 2021 13:11:06 -0400 (EDT) |
branch: master
commit 46ff443dc0657105213354be12f2d3b97a2538b2
Author: Gabriel do Nascimento Ribeiro <gabriel376@hotmail.com>
Commit: Juri Linkov <juri@linkov.net>
Handle nil messages in repeat-echo-message.
* lisp/repeat.el (repeat-echo-message): Handle cases where
'current-message' is nil (bug#50176).
---
lisp/repeat.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lisp/repeat.el b/lisp/repeat.el
index 89488dd..6c3ffec 100644
--- a/lisp/repeat.el
+++ b/lisp/repeat.el
@@ -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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 46ff443: Handle nil messages in repeat-echo-message.,
Juri Linkov <=