comparison lisp/emacs-lisp/easymenu.el @ 47550:df31632ef1db

(easy-menu-remove): Add docstring.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 19 Sep 2002 05:12:24 +0000
parents f66d837bdbff
children 86ecd875b9c5
comparison
equal deleted inserted replaced
47549:448895ab039b 47550:df31632ef1db
461 ;; XEmacs needs the following two functions to add and remove menus. 461 ;; XEmacs needs the following two functions to add and remove menus.
462 ;; In Emacs this is done automatically when switching keymaps, so 462 ;; In Emacs this is done automatically when switching keymaps, so
463 ;; here easy-menu-remove is a noop and easy-menu-add only precalculates 463 ;; here easy-menu-remove is a noop and easy-menu-add only precalculates
464 ;; equivalent keybindings (if easy-menu-precalculate-equivalent-keybindings 464 ;; equivalent keybindings (if easy-menu-precalculate-equivalent-keybindings
465 ;; is on). 465 ;; is on).
466 (defalias 'easy-menu-remove 'ignore) 466 (defalias 'easy-menu-remove 'ignore
467 "Remove MENU from the current menu bar.
468 Contrary to XEmacs, this is a nop on Emacs since menus are automatically
469 \(de)activated when the corresponding keymap is (de)activated.
470
471 \(fn MENU)")
467 472
468 (defun easy-menu-add (menu &optional map) 473 (defun easy-menu-add (menu &optional map)
469 "Add the menu to the menubar. 474 "Add the menu to the menubar.
470 This is a nop on Emacs since menus are automatically activated when the 475 This is a nop on Emacs since menus are automatically activated when the
471 corresponding keymap is activated. On XEmacs this is needed to actually 476 corresponding keymap is activated. On XEmacs this is needed to actually