end-kbd-macro

end-kbd-macro is an interactive built-in function in `C source code'.


(end-kbd-macro &optional REPEAT LOOPFUNC)

Finish defining a keyboard macro.
The definition was started by M-x start-kbd-macro.
The macro is now available for use via M-x call-last-kbd-macro,
or it can be given a name with M-x name-last-kbd-macro and then invoked
under that name.

With numeric arg, repeat macro now that many times,
counting the definition just completed as the first repetition.
An argument of zero means repeat until error.

In Lisp, optional second arg LOOPFUNC may be a function that is called prior to
each iteration of the macro. Iteration stops if LOOPFUNC returns nil.