defining-kbd-macro

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


(defining-kbd-macro APPEND &optional NO-EXEC)

Record subsequent keyboard input, defining a keyboard macro.
The commands are recorded even as they are executed.
Use M-x end-kbd-macro to finish recording and make the macro available.
Use M-x name-last-kbd-macro to give it a permanent name.
Non-nil arg (prefix arg) means append to last macro defined;
this begins by re-executing that macro as if you typed it again.
If optional second arg, NO-EXEC, is non-nil, do not re-execute last
macro before appending to it.