diff options
author | Miles Bader <miles@gnu.org> | 2005-05-26 05:42:19 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2005-05-26 05:42:19 +0000 |
commit | d2eeec7fb90dc54c4b08e85f452a23317c0ee65d (patch) | |
tree | cd13677b902ee91ff96c5f43ca30ae2aba828312 /lisp/emacs-lisp/easymenu.el | |
parent | 5611ba87dd81c98d2cc00a4d01e19db3d26cf9d5 (diff) | |
parent | c0e9b2d0ec9cb343733243371efecf77722b067f (diff) | |
download | emacs-d2eeec7fb90dc54c4b08e85f452a23317c0ee65d.tar.gz emacs-d2eeec7fb90dc54c4b08e85f452a23317c0ee65d.tar.bz2 emacs-d2eeec7fb90dc54c4b08e85f452a23317c0ee65d.zip |
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-55
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 320-323)
- Update from CVS
Diffstat (limited to 'lisp/emacs-lisp/easymenu.el')
-rw-r--r-- | lisp/emacs-lisp/easymenu.el | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/easymenu.el b/lisp/emacs-lisp/easymenu.el index c9f1769ae14..b3160c9b752 100644 --- a/lisp/emacs-lisp/easymenu.el +++ b/lisp/emacs-lisp/easymenu.el @@ -471,11 +471,15 @@ Contrary to XEmacs, this is a nop on Emacs since menus are automatically (defun easy-menu-add (menu &optional map) "Add the menu to the menubar. -This is a nop on Emacs since menus are automatically activated when the -corresponding keymap is activated. On XEmacs this is needed to actually -add the menu to the current menubar. -Maybe precalculate equivalent key bindings. -Do it only if `easy-menu-precalculate-equivalent-keybindings' is on." +On Emacs, menus are already automatically activated when the +corresponding keymap is activated. On XEmacs this is needed to +actually add the menu to the current menubar. + +This also precalculates equivalent key bindings when +`easy-menu-precalculate-equivalent-keybindings' is on. + +You should call this once the menu and keybindings are set up +completely and menu filter functions can be expected to work." (when easy-menu-precalculate-equivalent-keybindings (if (and (symbolp menu) (not (keymapp menu)) (boundp menu)) (setq menu (symbol-value menu))) |