comparison src/events.h @ 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 a75979634ce3
children 6ef8256a020a e0db3c197671
comparison
equal deleted inserted replaced
4779:fd98353950a4 4780:2fd201d73a92
949 */ 949 */
950 950
951 /* Maybe this should be trickier */ 951 /* Maybe this should be trickier */
952 #define KEYSYM(x) (intern (x)) 952 #define KEYSYM(x) (intern (x))
953 953
954 typedef enum character_to_event_meta_behavior
955 {
956 high_bit_is_meta,
957 use_console_meta_flag,
958 latin_1_maps_to_itself
959 } character_to_event_meta_behavior;
960
954 /* from events.c */ 961 /* from events.c */
955 void format_event_object (Eistring *buf, Lisp_Object event, int brief); 962 void format_event_object (Eistring *buf, Lisp_Object event, int brief);
956 /*void format_event_data_object (Eistring *buf, Lisp_Object data, int brief);*/ 963 /*void format_event_data_object (Eistring *buf, Lisp_Object data, int brief);*/
957 void character_to_event (Ichar c, Lisp_Event *event, 964 void character_to_event (Ichar, Lisp_Event *, struct console *,
958 struct console *con, 965 character_to_event_meta_behavior meta_flag,
959 int use_console_meta_flag,
960 int do_backspace_mapping); 966 int do_backspace_mapping);
967
961 void zero_event (Lisp_Event *e); 968 void zero_event (Lisp_Event *e);
962 969
963 #define MECR_DEALLOCATE_EVENT 1 970 #define MECR_DEALLOCATE_EVENT 1
964 971
965 void deallocate_event_chain (Lisp_Object event); 972 void deallocate_event_chain (Lisp_Object event);