Function: defining-kbd-macro
defining-kbd-macro is a function alias and interactive for
start-kbd-macro, defined in macros.c.
Signature
(defining-kbd-macro APPEND &optional NO-EXEC)
Documentation
Record subsequent keyboard input, defining a keyboard macro.
The commands are recorded even as they are executed.
Use M-x end-kbd-macro (end-kbd-macro) to finish recording and make the macro available.
Use M-x name-last-kbd-macro (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.
Probably introduced at or before Emacs version 19.29.
Key Bindings