Next: Default Commands, Previous: Operations on Commands, Up: Commands
When a command is to be invoked, the call-command function is
used. This builds a list of argument values to apply to the command
(using its interactive declaration) then calls the command.
This function calls the command command interactively. See the documentation of
commandpabove for what constitutes a command.If the prefix-argument is non-nil it defines the value of the
current-prefix-argvariable for this command, normally the value of this variable would be taken from the globalprefix-argvariable.There is a corresponding
call-commandcommand that prompts for a command to execute.
Call the function underlying the command name, passing in args as the arguments. This is useful for calling a command in a non-interactive context.
When invoking an interactive command, this is set to the current prefix argument.
The command currently being called, or `nil' if no command is being called.
See Command Hooks, for hooks run before and after commands.