diff options
| author | Stefan Monnier | 2003-05-15 21:21:06 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2003-05-15 21:21:06 +0000 |
| commit | 35fb885d5c6cf272c7744ebda8d83330ebc80a4d (patch) | |
| tree | 078720cc0179405ba0b591853a1bcca8b23eff9d | |
| parent | 4e0b27cd735fa9c6529bc8d7575b52d2df4a60fc (diff) | |
| download | emacs-35fb885d5c6cf272c7744ebda8d83330ebc80a4d.tar.gz emacs-35fb885d5c6cf272c7744ebda8d83330ebc80a4d.zip | |
(apply_modifiers): Don't fill the other cache.
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/keyboard.c | 15 |
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 @@ | |||
| 1 | 2003-05-15 Stefan Monnier <monnier@cs.yale.edu> | ||
| 2 | |||
| 3 | * keyboard.c (apply_modifiers): Don't fill the other cache. | ||
| 4 | |||
| 1 | 2003-05-14 Stefan Monnier <monnier@cs.yale.edu> | 5 | 2003-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. |