From cc1032b3f376281e724c2f2903a6e5f23ec42db7 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 7 Jun 1994 18:31:56 +0000 Subject: [PATCH] (menu_item_equiv_key): Check whether def1 matches un-aliased command name as well as given command name. --- src/xmenu.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xmenu.c b/src/xmenu.c index a00bcb1a78b..3a0e2137cbe 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -324,6 +324,11 @@ menu_item_equiv_key (item_string, item1, descrip_ptr) def1 = Fkey_binding (savedkey, Qnil); /* If not, update it. */ if (! EQ (def1, def) + /* If the command is an alias for another + (such as easymenu.el and lmenu.el set it up), + check if the original command matches the cached command. */ + && !(SYMBOLP (def) && SYMBOLP (XSYMBOL (def)->function) + && EQ (def1, XSYMBOL (def)->function)) /* If something had no key binding before, don't recheck it-- doing that takes too much time and makes menus too slow. */ && !(!NILP (cachelist) && NILP (savedkey))) -- 2.39.5