Function: end-kbd-macro

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. (fn &optional REPEAT LOOPFUNC)