# HG changeset patch # User Richard M. Stallman # Date 771013916 0 # Node ID 44cfbd972eddfce009b22d6fb802c049e7f6adb4 # Parent 343a21c51172fc535e1781135ed424db13de791a (menu_item_equiv_key): Check whether def1 matches un-aliased command name as well as given command name. diff -r 343a21c51172 -r 44cfbd972edd src/xmenu.c --- a/src/xmenu.c Tue Jun 07 18:04:58 1994 +0000 +++ b/src/xmenu.c Tue Jun 07 18:31:56 1994 +0000 @@ -324,6 +324,11 @@ 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)))