Next: , Previous: New-style Command Definition, Up: Commands


17.3 Interactive Calling Specification

The calling-spec argument to interactive or define-command defines the argument values applied to the command when it is called interactively. It may be one of:

The currently available prefixes are,

`e'
The event which caused this command to be invoked.
`E'
The event which caused this command, cooked into a string.
`p'
The prefix argument as a number, this will be 1 if no prefix argument has been entered.
`P'
The raw prefix argument.
`t'
The symbol t.
`%f'
The window which currently has the input focus, or nil if no window is focused.
`%w'
The result of calling the current-event-window function.
`%W'
The result of calling the current-event-window function, or if this returns nil or root, the currently focused window.