Commit d0db6991 authored by Stefan Monnier's avatar Stefan Monnier

(easy-menu-define-key): Understand the case where the keymap is a symbol.

parent e9146d5a
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment