Mercurial > hg > xemacs-beta
comparison src/event-Xt.c @ 3142:77f5a5135b3a
[xemacs-hg @ 2005-12-17 19:46:57 by aidan]
Fix self-insert-command with X11 input methods. Addresses Zhang Wei's
problem of 871x118lc4.fsf@gmail.com.
author | aidan |
---|---|
date | Sat, 17 Dec 2005 19:47:03 +0000 |
parents | ad2f4ae9895b |
children | 4cad7ff4a200 |
comparison
equal
deleted
inserted
replaced
3141:66c42fc5d26b | 3142:77f5a5135b3a |
---|---|
896 if (len > 1) | 896 if (len > 1) |
897 { | 897 { |
898 int j; | 898 int j; |
899 stderr_out (" chars=\""); | 899 stderr_out (" chars=\""); |
900 for (j=0; j<len; j++) | 900 for (j=0; j<len; j++) |
901 stderr_out ("%c", bufptr[j]); | 901 { |
902 if (040 <= bufptr[j] && bufptr[j] >= 0177) | |
903 { | |
904 stderr_out ("%c", bufptr[j]); | |
905 } | |
906 else | |
907 { | |
908 stderr_out ("\\%o", (unsigned)(bufptr[j])); | |
909 } | |
910 } | |
902 stderr_out ("\""); | 911 stderr_out ("\""); |
903 } | 912 } |
904 else if (bufptr[0] <= 32 || bufptr[0] >= 127) | 913 else if (bufptr[0] <= 32 || bufptr[0] >= 127) |
905 stderr_out (" char=0x%x", bufptr[0]); | 914 stderr_out (" char=0x%x", bufptr[0]); |
906 else | 915 else |
926 Lstream *istr; | 935 Lstream *istr; |
927 struct gcpro gcpro1, gcpro2; | 936 struct gcpro gcpro1, gcpro2; |
928 | 937 |
929 fb_instream = make_fixed_buffer_input_stream (bufptr, len); | 938 fb_instream = make_fixed_buffer_input_stream (bufptr, len); |
930 | 939 |
931 /* #### Use get_coding_system_for_text_file (Vcomposed_input_coding_system, 0) */ | 940 /* [[ Use get_coding_system_for_text_file |
941 (Vcomposed_input_coding_system, 0) ]] | |
942 | |
943 Nope. If it is possible for the X libraries to have multiple IM | |
944 connections on different DISPLAYs active at once, this should be | |
945 a console-specific variable (like a TTY's coding system) but I've | |
946 seen no evidence that that is possible. Aidan Kehoe, | |
947 2005-12-17. */ | |
948 | |
932 instream = | 949 instream = |
933 make_coding_input_stream | 950 make_coding_input_stream |
934 (XLSTREAM (fb_instream), Qundecided, CODING_DECODE, 0); | 951 (XLSTREAM (fb_instream), Qkeyboard, CODING_DECODE, 0); |
935 | 952 |
936 istr = XLSTREAM (instream); | 953 istr = XLSTREAM (instream); |
937 | 954 |
938 GCPRO2 (instream, fb_instream); | 955 GCPRO2 (instream, fb_instream); |
939 while ((ch = Lstream_get_ichar (istr)) != EOF) | 956 while ((ch = Lstream_get_ichar (istr)) != EOF) |