comparison man/xemacs/menus.texi @ 398:74fd4e045ea6 r21-2-29

Import from CVS: tag r21-2-29
author cvs
date Mon, 13 Aug 2007 11:13:30 +0200
parents 7d59cb494b73
children de805c49cfc1
comparison
equal deleted inserted replaced
397:f4aeb21a5bad 398:74fd4e045ea6
428 You can customize any of the pull-down menus by adding or removing menu 428 You can customize any of the pull-down menus by adding or removing menu
429 items and disabling or enabling existing menu items. 429 items and disabling or enabling existing menu items.
430 430
431 The following functions are available: 431 The following functions are available:
432 @table @kbd 432 @table @kbd
433 @item add-menu: @var{(menu-path menu-name menu-items &optional before)} 433 @item add-menu: (@var{menu-path} @var{menu-name} @var{menu-items} &optional @var{before})
434 Add a menu to the menu bar or one of its submenus. 434 Add a menu to the menu bar or one of its submenus.
435 @item add-menu-item: @var{(menu-path item-name function enabled-p 435 @item add-menu-item: (@var{menu-path} @var{item-name} @var{function}
436 &optional before)} 436 @var{enabled-p} &optional @var{before})
437 Add a menu item to a menu, creating the menu first if necessary. 437 Add a menu item to a menu, creating the menu first if necessary.
438 @item delete-menu-item: @var{(path)} 438 @item delete-menu-item: (@var{path})
439 Remove the menu item defined by @var{path} from the menu hierarchy. 439 Remove the menu item defined by @var{path} from the menu hierarchy.
440 @item disable-menu-item: @var{(path)} 440 @item disable-menu-item: (@var{path})
441 Disable the specified menu item. 441 Disable the specified menu item.
442 @item enable-menu-item: @var{(path)} 442 @item enable-menu-item: (@var{path})
443 Enable the specified previously disabled menu item. 443 Enable the specified previously disabled menu item.
444 @item relabel-menu-item: @var{(path new-name)} 444 @item relabel-menu-item: (@var{path} @var{new-name})
445 Change the string of the menu item specified by @var{path} to 445 Change the string of the menu item specified by @var{path} to
446 @var{new-name}. 446 @var{new-name}.
447 447
448 @end table 448 @end table
449 449