Mercurial > hg > xemacs-beta
comparison src/event-unixoid.c @ 4780:2fd201d73a92
Call character_to_event on characters received from XIM, event-Xt.c
src/ChangeLog addition:
2009-12-17 Aidan Kehoe <kehoea@parhasard.net>
* events.h (character_to_event_meta_behavior): New enumeration,
describing what character_to_event should do with characters in
the range ?\x80-?\xFF, and passed as the third argument to
character_to_event instead of the binary use_console_meta_flag.
* events.c (character_to_event, Fcharacter_to_event):
* event-unixoid.c (read_event_from_tty_or_stream_desc):
* event-stream.c (maybe_kbd_translate, maybe_kbd_translate):
* event-msw.c (mswindows_need_event):
Use the new enumeration.
* event-Xt.c (x_to_emacs_keysym):
Call character_to_event when we receive XLookupChars events,
passing latin_1_maps_to_itself as the meta_behavior flag,
addressing the problem FKtPp sees in 87bpi9mwpu.fsf@yahoo.com.cn
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Thu, 17 Dec 2009 17:51:38 +0000 |
parents | 0cc7794d231e |
children | 70e8a00896e9 |
comparison
equal
deleted
inserted
replaced
4779:fd98353950a4 | 4780:2fd201d73a92 |
---|---|
116 loops reading EOF's */ | 116 loops reading EOF's */ |
117 Fconsole_disable_input (console); | 117 Fconsole_disable_input (console); |
118 } | 118 } |
119 else | 119 else |
120 { | 120 { |
121 /* Here we really do want to set the use_console_meta_flag because | 121 character_to_event (ch, event, con, use_console_meta_flag, 1); |
122 the char is from the TTY. */ | |
123 character_to_event (ch, event, con, 1, 1); | |
124 event->channel = console; | 122 event->channel = console; |
125 return 1; | 123 return 1; |
126 } | 124 } |
127 return 0; | 125 return 0; |
128 } | 126 } |