Mercurial > emacs
comparison src/keyboard.c @ 95030:7f50b5fc70de
(parse_menu_item): Do not cache key shortcut any more.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 16 May 2008 04:28:27 +0000 |
parents | 8971ddf55736 |
children | cd54e612f34f |
comparison
equal
deleted
inserted
replaced
95029:85094617d51a | 95030:7f50b5fc70de |
---|---|
7984 | 7984 |
7985 /* This is a command. See if there is an equivalent key binding. */ | 7985 /* This is a command. See if there is an equivalent key binding. */ |
7986 if (NILP (cachelist)) | 7986 if (NILP (cachelist)) |
7987 { | 7987 { |
7988 /* We have to create a cachelist. */ | 7988 /* We have to create a cachelist. */ |
7989 CHECK_IMPURE (start); | 7989 /* With the introduction of where_is_cache, the computation |
7990 XSETCDR (start, Fcons (Fcons (Qnil, Qnil), XCDR (start))); | 7990 of equivalent key bindings is sufficiently fast that we |
7991 do not need to cache it here any more. */ | |
7992 /* CHECK_IMPURE (start); | |
7993 XSETCDR (start, Fcons (Fcons (Qnil, Qnil), XCDR (start))); */ | |
7991 cachelist = XCAR (XCDR (start)); | 7994 cachelist = XCAR (XCDR (start)); |
7992 newcache = 1; | 7995 newcache = 1; |
7993 tem = AREF (item_properties, ITEM_PROPERTY_KEYEQ); | 7996 tem = AREF (item_properties, ITEM_PROPERTY_KEYEQ); |
7994 if (!NILP (keyhint)) | 7997 if (!NILP (keyhint)) |
7995 { | 7998 { |