]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix repeating complex commands
authorSean Whitton <spwhitton@spwhitton.name>
Fri, 5 Feb 2021 09:06:22 +0000 (10:06 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 5 Feb 2021 09:06:22 +0000 (10:06 +0100)
* 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

index d48888934840567ef22d0bf8791214b35cc8f4bf..795577c93fc299a00a1bce1db67105ff56021a26 100644 (file)
@@ -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))