454 |
If the optional argument BEFORE is present, add it just before |
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. |
the submenu named BEFORE, otherwise add it at the end of the menu. |
456 |
|
|
457 |
Either call this from `menu-bar-update-hook' or use a menu filter, |
To implement dynamic menus, either call this from |
458 |
to implement dynamic menus." |
`menu-bar-update-hook' or use a menu filter." |
459 |
(easy-menu-add-item nil path (easy-menu-create-menu name items) before)) |
(easy-menu-add-item nil path (easy-menu-create-menu name items) before)) |
460 |
|
|
461 |
;; XEmacs needs the following two functions to add and remove menus. |
;; XEmacs needs the following two functions to add and remove menus. |