comparison lisp/emacs-lisp/easymenu.el @ 66495:9bc148ee2fda

(easy-menu-change): Doc fix.
author Richard M. Stallman <rms@gnu.org>
date Fri, 28 Oct 2005 16:22:47 +0000
parents 5b1a238fcbb4
children 067115a6e738 7beb78bc1f8e
comparison
equal deleted inserted replaced
66494:b9971215f644 66495:9bc148ee2fda
452 452
453 If the menu located by PATH has no submenu named NAME, add one. 453 If the menu located by PATH has no submenu named NAME, add one.
454 If the optional argument BEFORE is present, add it just before 454 If the optional argument BEFORE is present, add it just before
455 the submenu named BEFORE, otherwise add it at the end of the menu. 455 the submenu named BEFORE, otherwise add it at the end of the menu.
456 456
457 Either call this from `menu-bar-update-hook' or use a menu filter, 457 To implement dynamic menus, either call this from
458 to implement dynamic menus." 458 `menu-bar-update-hook' or use a menu filter."
459 (easy-menu-add-item nil path (easy-menu-create-menu name items) before)) 459 (easy-menu-add-item nil path (easy-menu-create-menu name items) before))
460 460
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