Node: Operations on Commands, Next: , Previous: Interactive Calling Specification, Up: Commands



Operations on Commands

Once a command has been defined, we can extract certain information about it.

commandp object Function
This function returns t if its argument may be called interactively. If object is a function (i.e. a symbol or a lambda-expression) it is a command if it contains an interactive declaration

The only other object which is a command is a function call form; the use of these types of commands is discouraged but they can be useful sometimes.

command-documentation name Function
Return the documentation for the command name. It returns the first documentation found by looking at (in order): the documentation property of the command; the doc file entry associated with the doc key property; or the documentation for the function with the same name.

command-spec name Function
command-type name Function
command-class name Function
Return the specification, type or class (respectively) of the named command.