From: Kenichi Handa Date: Tue, 20 Aug 2002 08:20:31 +0000 (+0000) Subject: (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead X-Git-Tag: emacs-pretest-23.0.90~8295^2~1864^2~413 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=16747e037d9e305a19b790ceddf3618e86fd8a4c;p=emacs.git (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead of direct code 0x3ffff. --- 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, if (first_binding == nmaps && ! function_key_possible && ! key_translation_possible && INTEGERP (key) - && ((((XINT (key) & 0x3ffff) - < XCHAR_TABLE (current_buffer->downcase_table)->size) - && UPPERCASEP (XINT (key) & 0x3ffff)) + && ((CHARACTERP (XINT (key) & ~CHAR_MODIFIER_MASK) + && UPPERCASEP (XINT (key) & ~CHAR_MODIFIER_MASK)) || (XINT (key) & shift_modifier))) { Lisp_Object new_key; @@ -8972,8 +8971,8 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last, if (XINT (key) & shift_modifier) XSETINT (new_key, XINT (key) & ~shift_modifier); else - XSETINT (new_key, (DOWNCASE (XINT (key) & 0x3ffff) - | (XINT (key) & ~0x3ffff))); + XSETINT (new_key, (DOWNCASE (XINT (key) & ~CHAR_MODIFIER_MASK) + | (XINT (key) & CHAR_MODIFIER_MASK))); /* We have to do this unconditionally, regardless of whether the lower-case char is defined in the keymaps, because they