diff options
| -rw-r--r-- | lisp/kmacro.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/kmacro.el b/lisp/kmacro.el index bfc0edba2c1..8d162e73da6 100644 --- a/lisp/kmacro.el +++ b/lisp/kmacro.el | |||
| @@ -606,8 +606,11 @@ An argument of zero means repeat until error." | |||
| 606 | (unless executing-kbd-macro | 606 | (unless executing-kbd-macro |
| 607 | (end-kbd-macro arg #'kmacro-loop-setup-function) | 607 | (end-kbd-macro arg #'kmacro-loop-setup-function) |
| 608 | (when (and last-kbd-macro (= (length last-kbd-macro) 0)) | 608 | (when (and last-kbd-macro (= (length last-kbd-macro) 0)) |
| 609 | (setq last-kbd-macro nil) | ||
| 609 | (message "Ignore empty macro") | 610 | (message "Ignore empty macro") |
| 610 | (kmacro-pop-ring)))) | 611 | ;; Don't call `kmacro-ring-empty-p' to avoid its messages. |
| 612 | (while (and (null last-kbd-macro) kmacro-ring) | ||
| 613 | (kmacro-pop-ring1))))) | ||
| 611 | 614 | ||
| 612 | 615 | ||
| 613 | ;;;###autoload | 616 | ;;;###autoload |