comparison src/event-msw.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 8f1ee2d15784
children 8b63e21b0436
comparison
equal deleted inserted replaced
4779:fd98353950a4 4780:2fd201d73a92
1614 { 1614 {
1615 Lisp_Object event = Fmake_event (Qnil, Qnil); 1615 Lisp_Object event = Fmake_event (Qnil, Qnil);
1616 /* Here we really do want to set the 1616 /* Here we really do want to set the
1617 use_console_meta_flag because the char is from the 1617 use_console_meta_flag because the char is from the
1618 TTY. */ 1618 TTY. */
1619 character_to_event (ch, XEVENT (event), con, 1, 1); 1619 character_to_event (ch, XEVENT (event), con,
1620 use_console_meta_flag, 1);
1620 XSET_EVENT_CHANNEL (event, porca_troia); 1621 XSET_EVENT_CHANNEL (event, porca_troia);
1621 enqueue_dispatch_event (event); 1622 enqueue_dispatch_event (event);
1622 } 1623 }
1623 break; 1624 break;
1624 } 1625 }