From: Stefan Monnier Date: Fri, 16 May 2008 04:28:27 +0000 (+0000) Subject: (parse_menu_item): Do not cache key shortcut any more. X-Git-Tag: emacs-pretest-23.0.90~5491 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=86b897138206f502e6f6a17568f85b6fab562a3f;p=emacs.git (parse_menu_item): Do not cache key shortcut any more. --- diff --git a/src/ChangeLog b/src/ChangeLog index 9c5c073fc79..cff5c24b1fd 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-05-16 Stefan Monnier + + * keyboard.c (parse_menu_item): Do not cache key shortcut any more. + 2008-05-15 YAMAMOTO Mitsuharu * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'. 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);