Page 275 Table of Contents Index Page 277
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

errorp is true, then the command-not-accessible error will be signalled. Note that the character
case of string is ignored when searching the command table's menu.

=> command-menu-item-type menu-item [Function]
Returns the type of the command menu item menu-item, for example, :menu or :command. If
menu-item is not a command menu item, the result is unspecified.

=> command-menu-item-value menu-item [Function]
Returns the value of the command menu item menu-item. For example, if the type of menu-item
is :command, this will return a command or a command name. If menu-item is not a command
menu item, the result is unspecified.

=> command-menu-item-options menu-item [Function]
Returns a list of the options for the command menu item menu-item. If menu-item is not a
command menu item, the result is unspecified.

=> display-command-table-menu command-table stream &key max-width max-height n-rows n-
columns x-spacing y-spacing initial-spacing (cell-align-x
:left) (cell-align-y :top) (move-cursor
t) [Generic Function]
Displays command-table's menu on stream. Implementations may choose to use formatting-
item-list
or may display the command table's menu in a platform dependent manner, such as
using the menu bar on a Macintosh. command-table is a command table designator.

max-width, max-height, n-rows, n-columns, x-spacing, y-spacing, initial-spacing, cell-align-x, cell-
align-y
, and move-cursor are as for formatting-item-list.

=> menu-choose-command-from-command-table command-table &key associated-window default-
style label cache unique-id id-test cache-value cache-test
[Function]
Invokes a window system specific routine that displays a menu of commands from command-
table
's menu, and allows the user to choose one of the commands. command-table is a command
table designator
. The returned value is a command object. This may invoke itself recursively
when there are sub-menus.

associated-window, default-style, label, cache, unique-id, id-test, cache-value, and cache-test are
as for menu-choose.

Minor issue: Should this be generic on application frames? | SWM

27.4 Keystroke Accelerators

Each command table may have a mapping from keystroke accelerator gesture names to com-
mand menu items. When a user types a key on the keyboard that corresponds to the gesture


Page 275 Table of Contents Index Page 277
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