Mercurial > emacs
comparison src/keymap.c @ 70536:aa139a4a13b2
(push_key_description): Fix previous change.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 09 May 2006 13:19:57 +0000 |
parents | 8003a30510ee |
children | e1a064810f6f 1321f6cfb389 |
comparison
equal
deleted
inserted
replaced
70535:8003a30510ee | 70536:aa139a4a13b2 |
---|---|
2095 /* Clear all the meaningless bits above the meta bit. */ | 2095 /* Clear all the meaningless bits above the meta bit. */ |
2096 c &= meta_modifier | ~ - meta_modifier; | 2096 c &= meta_modifier | ~ - meta_modifier; |
2097 c2 = c & ~(alt_modifier | ctrl_modifier | hyper_modifier | 2097 c2 = c & ~(alt_modifier | ctrl_modifier | hyper_modifier |
2098 | meta_modifier | shift_modifier | super_modifier); | 2098 | meta_modifier | shift_modifier | super_modifier); |
2099 | 2099 |
2100 valid_p = SINGLE_BYTE_CHAR_P (c) || char_valid_p (c, 0); | 2100 valid_p = SINGLE_BYTE_CHAR_P (c2) || char_valid_p (c2, 0); |
2101 if (! valid_p) | 2101 if (! valid_p) |
2102 { | 2102 { |
2103 /* KEY_DESCRIPTION_SIZE is large enough for this. */ | 2103 /* KEY_DESCRIPTION_SIZE is large enough for this. */ |
2104 p += sprintf (p, "[%d]", c); | 2104 p += sprintf (p, "[%d]", c); |
2105 return p; | 2105 return p; |