deuce.emacs.macros

call-last-kbd-macro

(call-last-kbd-macro & [prefix loopfunc])
Call the last keyboard macro that you defined with M-x start-kbd-macro.

A prefix argument serves as a repeat count.  Zero means repeat until error.

To make a macro permanent so you can call it even after
defining others, use M-x name-last-kbd-macro.

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.

cancel-kbd-macro-events

(cancel-kbd-macro-events)
Cancel the events added to a keyboard macro for this command.

defining-kbd-macro

(defining-kbd-macro append & [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.

end-kbd-macro

(end-kbd-macro & [repeat loopfunc])
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.

execute-kbd-macro

(execute-kbd-macro macro & [count loopfunc])
Execute MACRO as string of editor command characters.
If MACRO is a symbol, its function definition is used.
COUNT is a repeat count, or nil for once, or 0 for infinite loop.

Optional third arg LOOPFUNC may be a function that is called prior to
each iteration of the macro.  Iteration stops if LOOPFUNC returns nil.

start-kbd-macro

(start-kbd-macro append & [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.

store-kbd-macro-event

(store-kbd-macro-event event)
Store EVENT into the keyboard macro being defined.