]> git.eshelyaron.com Git - emacs.git/commitdiff
(menu_item_equiv_key): Delete the code that rejected
authorRichard M. Stallman <rms@gnu.org>
Thu, 23 Feb 1995 09:05:08 +0000 (09:05 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 23 Feb 1995 09:05:08 +0000 (09:05 +0000)
menu bindings returned by Fwhere_is_internal.

src/xmenu.c

index 5fc000c7bde9bcbba9a3f70b455278a9f11e7ba9..05edbb55ad09fb806852e5db7b61132439e8b05b 100644 (file)
@@ -355,22 +355,6 @@ menu_item_equiv_key (item_string, item1, descrip_ptr)
           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))
-       savedkey = Qnil;
-      /* Reject two-key sequences that start with a mouse click.
-        These are probably menu items.  */
-      if (VECTORP (savedkey)
-         && XVECTOR (savedkey)->size > 1
-         && SYMBOLP (XVECTOR (savedkey)->contents[0]))
-       {
-         Lisp_Object tem;
-
-         tem = Fget (XVECTOR (savedkey)->contents[0], Qevent_kind);
-         if (EQ (tem, Qmouse_click))
-           savedkey = Qnil;
-       }
       if (!NILP (savedkey))
        {
          descrip = Fkey_description (savedkey);