]> git.eshelyaron.com Git - emacs.git/commitdiff
(easy-menu-define-key): Understand the case where the keymap is a symbol.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 10 Nov 2004 15:15:43 +0000 (15:15 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 10 Nov 2004 15:15:43 +0000 (15:15 +0000)
lisp/emacs-lisp/easymenu.el

index f42f326ba0affd92dc51a8a2a9eefde5d3662ed4..730236989a45b8f85ae59485c7ebf9633b0cae35 100644 (file)
@@ -378,6 +378,7 @@ otherwise put the new binding last in MENU.
 BEFORE can be either a string (menu item name) or a symbol
 \(the fake function key for the menu item).
 KEY does not have to be a symbol, and comparison is done with equal."
+  (if (symbolp menu) (setq menu (indirect-function menu)))
   (let ((inserted (null item))         ; Fake already inserted.
        tail done)
     (while (not done)