A keyboard macro is a canned sequence of input events that can be considered a command and made the definition of a key. The Lisp representation of a keyboard macro is a string or vector containing the events. Don't confuse keyboard macros with Lisp macros (see section Macros).
If kbdmacro is a symbol, then its function definition is used in place of kbdmacro. If that is another symbol, this process repeats. Eventually the result should be a string or vector. If the result is not a symbol, string, or vector, an error is signaled.
The argument count is a repeat count; kbdmacro is executed that
many times. If count is omitted or nil
, kbdmacro is
executed once. If it is 0, kbdmacro is executed over and over until it
encounters an error or a failing search.
See section Reading One Event, for an example of using execute-kbd-macro
.
nil
if no macro is
currently executing. A command can test this variable so as to behave
differently when run from an executing macro. Do not set this variable
yourself.
start-kbd-macro
and
end-kbd-macro
set this variable--do not set it yourself.
The variable is always local to the current terminal and cannot be buffer-local. See section Multiple Displays.
nil
.
The variable is always local to the current terminal and cannot be buffer-local. See section Multiple Displays.
Go to the first, previous, next, last section, table of contents.