]> git.eshelyaron.com Git - emacs.git/commitdiff
(easy-menu-add-item): Don't default to the global map.
authorJohn Paul Wallington <jpw@pobox.com>
Mon, 24 Mar 2003 12:21:02 +0000 (12:21 +0000)
committerJohn Paul Wallington <jpw@pobox.com>
Mon, 24 Mar 2003 12:21:02 +0000 (12:21 +0000)
lisp/ChangeLog
lisp/emacs-lisp/easymenu.el

index 91b66be53ab5ba51747e0d49e4c348bcf3a4b32d..2390fbd90d0216d8f141bf7251859bb60400b3d9 100644 (file)
@@ -10,6 +10,9 @@
 
 2003-03-24  John Paul Wallington  <jpw@gnu.org>
 
+       * emacs-lisp/easymenu.el (easy-menu-add-item): Don't default to
+       the global map.
+
        * emerge.el (emerge-show-file-name): Read event irrespective of
        whether minibuffer window is resized.  Clear minibuffer when done.
 
index 47880408d75255377e8c53f8575965a22b9fcbff..6ed2903f8aea0d7e26abfea0363e5c47091fb9dc 100644 (file)
@@ -516,9 +516,6 @@ submenu is then traversed recursively with the remaining elements of PATH.
 ITEM is either defined as in `easy-menu-define' or a non-nil value returned
 by `easy-menu-item-present-p' or `easy-menu-remove-item' or a menu defined
 earlier by `easy-menu-define' or `easy-menu-create-menu'."
-  (unless map
-    (setq map (current-global-map))
-    (push 'menu-bar path))
   (setq map (easy-menu-get-map map path
                               (and (null map) (null path)
                                    (stringp (car-safe item))