From: Richard M. Stallman Date: Thu, 23 Feb 1995 09:05:08 +0000 (+0000) Subject: (menu_item_equiv_key): Delete the code that rejected X-Git-Tag: emacs-19.34~5049 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9257760577a6fc58af6267dc24234f5a6e6e1645;p=emacs.git (menu_item_equiv_key): Delete the code that rejected menu bindings returned by Fwhere_is_internal. --- diff --git a/src/xmenu.c b/src/xmenu.c index 5fc000c7bde..05edbb55ad0 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -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);