emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 7016db9: Fix repeating complex commands


From: Lars Ingebrigtsen
Subject: master 7016db9: Fix repeating complex commands
Date: Fri, 5 Feb 2021 04:06:31 -0500 (EST)

branch: master
commit 7016db933cd529c3cbc157b126dc17df8f2ff165
Author: Sean Whitton <spwhitton@spwhitton.name>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix repeating complex commands
    
    * lisp/repeat.el (repeat): Fix repeating complex commands
    (bug#46290).  This makes `M-: date RET C-x z' work again (like in
    Emacs 21, apparently).
---
 lisp/repeat.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lisp/repeat.el b/lisp/repeat.el
index d488889..795577c 100644
--- a/lisp/repeat.el
+++ b/lisp/repeat.el
@@ -239,9 +239,7 @@ recently executed command not bound to an input event\"."
            (car (memq last-command-event
                       (listify-key-sequence
                        repeat-on-final-keystroke))))))
-    (if (memq last-repeatable-command '(exit-minibuffer
-                                       minibuffer-complete-and-exit
-                                       self-insert-and-exit))
+    (if (eq last-repeatable-command (caar command-history))
         (let ((repeat-command (car command-history)))
           (repeat-message "Repeating %S" repeat-command)
           (eval repeat-command))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]