changeset 10716:7418dce6e52a

(menu_item_equiv_key): If command is an alias, check only the underlying command for a keyboard equivalent.
author Richard M. Stallman <rms@gnu.org>
date Sun, 12 Feb 1995 01:22:28 +0000
parents 9278298301fb
children e0f6b4ab7412
files src/xmenu.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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))