Page 270 Table of Contents Index Page 272
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E



CHAPTER 27. COMMAND PROCESSING

=> command-table-already-exists [Error Condition]
The error that is signalled when the programmer tries to create a command table that already
exists.

=> command-not-present [Error Condition]
The error that is signalled when a command is not present in a command table.

=> command-not-accessible [Error Condition]
The error that is signalled when a command is not accessible in a command table.

=> command-already-present [Error Condition]
The error that is signalled when a function tries to add a command to a command table when
it is already present in the command table.

=> add-command-to-command-table command-name command-table &key name menu keystroke
(errorp t)
[Function]
Adds the command named by command-name to the command table specified by the command
table designator
command-table.

name is the command-line name for the command, and can be nil, t, or a string. When it is
nil, the command will not be available via command-line interactions. When it is a string, that
string is the command-line name for the command. When it is t, the command-line name is
generated automatically. (The automatically generated name consists of the command's name
with the hyphens replaced by spaces, and the words capitalized; furthermore, if there is a prefix
of "COM-", the prefix is removed. For example, if the command name is com-show-file, the
command-line name will be "Show File".) For the purposes of command-line name lookup, the
character case of name is ignored.

menu is a menu item for the command, and can be nil, t, a string, or a cons. When it is nil,
the command will not be available via menus. When it is a string, the string will be used as
the menu name. When menu is t and name is a string, then name will be used as the menu
name. When menu is t and name is not a string, an automatically generated menu name will be
used. When menu is a cons of the form (string . menu-options), string is the menu name and
menu-options consists of keyword-value pairs. The valid keywords are :after, :documentation,
and :text-style, which are interpreted as for add-menu-item-to-command-table.

The value for keystroke is either keyboard gesture name or nil. When it is a gesture name, it
is the keystroke accelerator for the command; otherwise the command will not be available via
keystroke accelerators.

If the command is already present in the command table and errorp is true, the command-
already-present
error will be signalled. When the command is already present in the command
table and errorp is false, then the old command-line name, menu, and keystroke accelerator will
first be removed from the command table.


Page 270 Table of Contents Index Page 272
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E