Function: kmacro-end-and-call-macro
kmacro-end-and-call-macro is an autoloaded, interactive and
byte-compiled function defined in kmacro.el.gz.
Signature
(kmacro-end-and-call-macro ARG &optional NO-REPEAT)
Documentation
Call last keyboard macro, ending it first if currently being defined.
With numeric prefix ARG, repeat macro that many times. Zero argument means repeat until there is an error.
To give a macro a name, so you can call it even after defining other
macros, use C-x C-k n (kmacro-name-last-macro).
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/kmacro.el.gz
;;;###autoload
(defun kmacro-end-and-call-macro (arg &optional no-repeat)
"Call last keyboard macro, ending it first if currently being defined.
With numeric prefix ARG, repeat macro that many times.
Zero argument means repeat until there is an error.
To give a macro a name, so you can call it even after defining other
macros, use \\[kmacro-name-last-macro]."
(interactive "p")
(if defining-kbd-macro
(kmacro-end-macro nil))
(kmacro-call-macro arg no-repeat))