1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-29 07:58:28 +00:00

(kmacro-end-macro): When ignoring empty macro

avoid incorrect kmacro-ring-empty-p messages.
This commit is contained in:
Martin Rudalics 2007-07-18 08:46:42 +00:00
parent 41bd52f71d
commit 59f63e9aa5

View File

@ -606,8 +606,11 @@ An argument of zero means repeat until error."
(unless executing-kbd-macro
(end-kbd-macro arg #'kmacro-loop-setup-function)
(when (and last-kbd-macro (= (length last-kbd-macro) 0))
(setq last-kbd-macro nil)
(message "Ignore empty macro")
(kmacro-pop-ring))))
;; Don't call `kmacro-ring-empty-p' to avoid its messages.
(while (and (null last-kbd-macro) kmacro-ring)
(kmacro-pop-ring1)))))
;;;###autoload