aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2003-05-15 21:21:06 +0000
committerStefan Monnier2003-05-15 21:21:06 +0000
commit35fb885d5c6cf272c7744ebda8d83330ebc80a4d (patch)
tree078720cc0179405ba0b591853a1bcca8b23eff9d /src
parent4e0b27cd735fa9c6529bc8d7575b52d2df4a60fc (diff)
downloademacs-35fb885d5c6cf272c7744ebda8d83330ebc80a4d.tar.gz
emacs-35fb885d5c6cf272c7744ebda8d83330ebc80a4d.zip
(apply_modifiers): Don't fill the other cache.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/keyboard.c15
2 files changed, 13 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 702ed09afee..1ff5c7cedf4 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12003-05-15 Stefan Monnier <monnier@cs.yale.edu>
2
3 * keyboard.c (apply_modifiers): Don't fill the other cache.
4
12003-05-14 Stefan Monnier <monnier@cs.yale.edu> 52003-05-14 Stefan Monnier <monnier@cs.yale.edu>
2 6
3 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users. 7 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
diff --git a/src/keyboard.c b/src/keyboard.c
index 512755faf28..dd8b751c8d5 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -6091,12 +6091,15 @@ apply_modifiers (modifiers, base)
6091 entry = Fcons (index, new_symbol); 6091 entry = Fcons (index, new_symbol);
6092 Fput (base, Qmodifier_cache, Fcons (entry, cache)); 6092 Fput (base, Qmodifier_cache, Fcons (entry, cache));
6093 6093
6094 /* We have the parsing info now for free, so add it to the caches. */ 6094 /* We have the parsing info now for free, so we could add it to
6095 XSETFASTINT (index, modifiers); 6095 the caches:
6096 Fput (new_symbol, Qevent_symbol_element_mask, 6096 XSETFASTINT (index, modifiers);
6097 Fcons (base, Fcons (index, Qnil))); 6097 Fput (new_symbol, Qevent_symbol_element_mask,
6098 Fput (new_symbol, Qevent_symbol_elements, 6098 Fcons (base, Fcons (index, Qnil)));
6099 Fcons (base, lispy_modifier_list (modifiers))); 6099 Fput (new_symbol, Qevent_symbol_elements,
6100 Fcons (base, lispy_modifier_list (modifiers)));
6101 Sadly, this is only correct if `base' is indeed a base event,
6102 which is not necessarily the case. -stef */
6100 } 6103 }
6101 6104
6102 /* Make sure this symbol is of the same kind as BASE. 6105 /* Make sure this symbol is of the same kind as BASE.