aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index a00bcb1a78b..3a0e2137cbe 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -324,6 +324,11 @@ menu_item_equiv_key (item_string, item1, descrip_ptr)
324 def1 = Fkey_binding (savedkey, Qnil); 324 def1 = Fkey_binding (savedkey, Qnil);
325 /* If not, update it. */ 325 /* If not, update it. */
326 if (! EQ (def1, def) 326 if (! EQ (def1, def)
327 /* If the command is an alias for another
328 (such as easymenu.el and lmenu.el set it up),
329 check if the original command matches the cached command. */
330 && !(SYMBOLP (def) && SYMBOLP (XSYMBOL (def)->function)
331 && EQ (def1, XSYMBOL (def)->function))
327 /* If something had no key binding before, don't recheck it-- 332 /* If something had no key binding before, don't recheck it--
328 doing that takes too much time and makes menus too slow. */ 333 doing that takes too much time and makes menus too slow. */
329 && !(!NILP (cachelist) && NILP (savedkey))) 334 && !(!NILP (cachelist) && NILP (savedkey)))