From e9f50ba47d68a4c2b4e68476e9b45859be50402b Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 16 May 2008 04:28:27 +0000 Subject: (parse_menu_item): Do not cache key shortcut any more. --- src/keyboard.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/keyboard.c') diff --git a/src/keyboard.c b/src/keyboard.c index c41815cf3c5..5a8b0d1c0cf 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -7986,8 +7986,11 @@ parse_menu_item (item, notreal, inmenubar) if (NILP (cachelist)) { /* We have to create a cachelist. */ - CHECK_IMPURE (start); - XSETCDR (start, Fcons (Fcons (Qnil, Qnil), XCDR (start))); + /* With the introduction of where_is_cache, the computation + of equivalent key bindings is sufficiently fast that we + do not need to cache it here any more. */ + /* CHECK_IMPURE (start); + XSETCDR (start, Fcons (Fcons (Qnil, Qnil), XCDR (start))); */ cachelist = XCAR (XCDR (start)); newcache = 1; tem = AREF (item_properties, ITEM_PROPERTY_KEYEQ); -- cgit v1.2.1