aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2002-08-20 08:20:31 +0000
committerKenichi Handa2002-08-20 08:20:31 +0000
commit16747e037d9e305a19b790ceddf3618e86fd8a4c (patch)
treef1a7c86139c106ffcf20fc81e481b2285abe6674
parente5112ecb727f84e7b06b417d7d9708fc9a722d2b (diff)
downloademacs-16747e037d9e305a19b790ceddf3618e86fd8a4c.tar.gz
emacs-16747e037d9e305a19b790ceddf3618e86fd8a4c.zip
(read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
of direct code 0x3ffff.
-rw-r--r--src/keyboard.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 48627162ff5..ba1705446ab 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -8959,9 +8959,8 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last,
8959 if (first_binding == nmaps && ! function_key_possible 8959 if (first_binding == nmaps && ! function_key_possible
8960 && ! key_translation_possible 8960 && ! key_translation_possible
8961 && INTEGERP (key) 8961 && INTEGERP (key)
8962 && ((((XINT (key) & 0x3ffff) 8962 && ((CHARACTERP (XINT (key) & ~CHAR_MODIFIER_MASK)
8963 < XCHAR_TABLE (current_buffer->downcase_table)->size) 8963 && UPPERCASEP (XINT (key) & ~CHAR_MODIFIER_MASK))
8964 && UPPERCASEP (XINT (key) & 0x3ffff))
8965 || (XINT (key) & shift_modifier))) 8964 || (XINT (key) & shift_modifier)))
8966 { 8965 {
8967 Lisp_Object new_key; 8966 Lisp_Object new_key;
@@ -8972,8 +8971,8 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last,
8972 if (XINT (key) & shift_modifier) 8971 if (XINT (key) & shift_modifier)
8973 XSETINT (new_key, XINT (key) & ~shift_modifier); 8972 XSETINT (new_key, XINT (key) & ~shift_modifier);
8974 else 8973 else
8975 XSETINT (new_key, (DOWNCASE (XINT (key) & 0x3ffff) 8974 XSETINT (new_key, (DOWNCASE (XINT (key) & ~CHAR_MODIFIER_MASK)
8976 | (XINT (key) & ~0x3ffff))); 8975 | (XINT (key) & CHAR_MODIFIER_MASK)));
8977 8976
8978 /* We have to do this unconditionally, regardless of whether 8977 /* We have to do this unconditionally, regardless of whether
8979 the lower-case char is defined in the keymaps, because they 8978 the lower-case char is defined in the keymaps, because they