aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-07-15 21:01:44 +0000
committerStefan Monnier2008-07-15 21:01:44 +0000
commit0a1700794a034d9e7aaa82d0ebddc8b35aa255ef (patch)
tree3f2930b7ea4849c6ac8ce9fb98ec65bbaba3c9d0
parente953d75ceb48922b62dbd2248c6282accf8861ca (diff)
downloademacs-0a1700794a034d9e7aaa82d0ebddc8b35aa255ef.tar.gz
emacs-0a1700794a034d9e7aaa82d0ebddc8b35aa255ef.zip
(parse_menu_item): Don't use cachelist, even under NS.
If the cache doesn't work, let's fix it, rather than work around it.
-rw-r--r--src/ChangeLog7
-rw-r--r--src/keyboard.c11
2 files changed, 9 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 82880993fec..f3c60cd43e2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
4 If the cache doesn't work, let's fix it, rather than work around it.
5
12008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com> 62008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2 7
3 * Makefile.in: Correct additions for nsfont.o in last commit. 8 * Makefile.in: Correct additions for nsfont.o in last commit.
@@ -61,7 +66,7 @@
61 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to 66 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
62 other GUIs, including XPM support using code originally written for 67 other GUIs, including XPM support using code originally written for
63 Carbon GUI. 68 Carbon GUI.
64 (png_load, jpeg_load, tiff_load, gif_load): Added implementations 69 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
65 using NS API. 70 using NS API.
66 (image_ascent): Use font metrics macros instead of direct struct field 71 (image_ascent): Use font metrics macros instead of direct struct field
67 access. 72 access.
diff --git a/src/keyboard.c b/src/keyboard.c
index b908b8ad349..f6ec7671904 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -7996,15 +7996,10 @@ parse_menu_item (item, notreal, inmenubar)
7996 /* With the introduction of where_is_cache, the computation 7996 /* With the introduction of where_is_cache, the computation
7997 of equivalent key bindings is sufficiently fast that we 7997 of equivalent key bindings is sufficiently fast that we
7998 do not need to cache it here any more. */ 7998 do not need to cache it here any more. */
7999/*PENDING: under NS this effect does not hold, perhaps due to the 7999 /* CHECK_IMPURE (start);
8000 modifier-preference changes to where-is-internal.. */ 8000 XSETCDR (start, Fcons (Fcons (Qnil, Qnil), XCDR (start)));
8001#ifdef HAVE_NS 8001 cachelist = XCAR (XCDR (start)); */
8002 CHECK_IMPURE (start);
8003 XSETCDR (start, Fcons (Fcons (Qnil, Qnil), XCDR (start)));
8004 cachelist = XCAR (XCDR (start));
8005#else
8006 cachelist = Fcons (Qnil, Qnil); 8002 cachelist = Fcons (Qnil, Qnil);
8007#endif
8008 newcache = 1; 8003 newcache = 1;
8009 tem = AREF (item_properties, ITEM_PROPERTY_KEYEQ); 8004 tem = AREF (item_properties, ITEM_PROPERTY_KEYEQ);
8010 if (!NILP (keyhint)) 8005 if (!NILP (keyhint))