diff options
| author | Kenichi Handa | 2002-08-20 08:20:31 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-08-20 08:20:31 +0000 |
| commit | 16747e037d9e305a19b790ceddf3618e86fd8a4c (patch) | |
| tree | f1a7c86139c106ffcf20fc81e481b2285abe6674 /src | |
| parent | e5112ecb727f84e7b06b417d7d9708fc9a722d2b (diff) | |
| download | emacs-16747e037d9e305a19b790ceddf3618e86fd8a4c.tar.gz emacs-16747e037d9e305a19b790ceddf3618e86fd8a4c.zip | |
(read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
of direct code 0x3ffff.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 9 |
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 |