# HG changeset patch # User Richard M. Stallman # Date 792552148 0 # Node ID 7418dce6e52afd308f01877d1316f3b37969a473 # Parent 9278298301fb5aca29fdcdbcc9ac6ba5a3fcd13a (menu_item_equiv_key): If command is an alias, check only the underlying command for a keyboard equivalent. diff -r 9278298301fb -r 7418dce6e52a src/xmenu.c --- a/src/xmenu.c Sat Feb 11 22:07:09 1995 +0000 +++ b/src/xmenu.c Sun Feb 12 01:22:28 1995 +0000 @@ -344,13 +344,17 @@ { changed = 1; descrip = Qnil; - savedkey = Fwhere_is_internal (def, Qnil, Qt, Qnil); /* If the command is an alias for another (such as easymenu.el and lmenu.el set it up), see if the original command name has equivalent keys. */ if (SYMBOLP (def) && SYMBOLP (XSYMBOL (def)->function)) savedkey = Fwhere_is_internal (XSYMBOL (def)->function, Qnil, Qt, Qnil); + else + /* Otherwise look up the specified command itself. + We don't try both, because that makes easymenu menus slow. */ + savedkey = Fwhere_is_internal (def, Qnil, Qt, Qnil); + if (VECTORP (savedkey) && EQ (XVECTOR (savedkey)->contents[0], Qmenu_bar))