* 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).
(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))