Next: , Previous: , Up: Api   [Contents][Index]


5.8 Kbd-Macro

We will now add a keyboard macro facility familiar to Emacs users. We hook into the [[read-event]] procedure using a hook.

Variable: defining-kbd-macro?
Variable: last-kbd-macro
Variable: executing-kbd-macro?
Variable: kbd-macro-termination-hook
Variable: executing-temporal-kbd-macro-hook
Scheme Procedure: kbd-read-event-hook event

XXX This also may record the key event that stops the keyboard macro, which it shouldn’t.

Interactive Procedure: kmacro-start-macro
Interactive Procedure: kmacro-end-macro
Interactive Procedure: kmacro-end-and-call-macro

FIXME

Interactive Procedure: execute-temporal-kbd-macro #:optional (kbd-macro last-kbd-macro)

In addition to regular keyboard macros, Emacsy can execute keyboard macros such that they reproduce the keys at the same pace as they were recorded.