665 |
;;;###autoload |
;;;###autoload |
666 |
(defun kmacro-end-and-call-macro (arg &optional no-repeat) |
(defun kmacro-end-and-call-macro (arg &optional no-repeat) |
667 |
"Call last keyboard macro, ending it first if currently being defined. |
"Call last keyboard macro, ending it first if currently being defined. |
668 |
With numeric prefix ARG, repeat macro that many times." |
With numeric prefix ARG, repeat macro that many times. |
669 |
|
Zero argument means repeat until there is an error. |
670 |
|
|
671 |
|
To give a macro a permanent name, so you can call it |
672 |
|
even after defining other macros, use \\[name-last-kbd-macro]." |
673 |
(interactive "P") |
(interactive "P") |
674 |
(if defining-kbd-macro |
(if defining-kbd-macro |
675 |
(kmacro-end-macro nil)) |
(kmacro-end-macro nil)) |