Mercurial > hg > xemacs-beta
comparison src/event-Xt.c @ 3072:4c038e89d563
[xemacs-hg @ 2005-11-16 07:22:37 by stephent]
Assorted minor fixes.
TODO comment in configure.ac:
<87irutytzq.fsf@tleepslib.sk.tsukuba.ac.jp>
Avoid warning, don't redefine integer types on Mac OS X:
<87ek5hytvq.fsf@tleepslib.sk.tsukuba.ac.jp>
Fix uninitialized variable:
<87acg5yttp.fsf@tleepslib.sk.tsukuba.ac.jp>
Eliminate warnings for unused parameters and functions:
<8764qtytrp.fsf@tleepslib.sk.tsukuba.ac.jp>
Quiet byte-compiler in select.el:
<871x1hytow.fsf@tleepslib.sk.tsukuba.ac.jp>
Quiet compiler about unused parameters in sound.el:
<87wtj9xf16.fsf@tleepslib.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Wed, 16 Nov 2005 07:22:46 +0000 |
parents | ee35a8fdcfcd |
children | ad2f4ae9895b |
comparison
equal
deleted
inserted
replaced
3071:a80f978d8342 | 3072:4c038e89d563 |
---|---|
834 /* simple_p means don't try too hard (ASCII only) */ | 834 /* simple_p means don't try too hard (ASCII only) */ |
835 { | 835 { |
836 KeySym keysym = 0; | 836 KeySym keysym = 0; |
837 | 837 |
838 #ifdef HAVE_XIM | 838 #ifdef HAVE_XIM |
839 int len; | 839 int len = 0; |
840 /* Some implementations of XmbLookupString don't return | 840 /* Some implementations of XmbLookupString don't return |
841 XBufferOverflow correctly, so increase the size of the xim input | 841 XBufferOverflow correctly, so increase the size of the xim input |
842 buffer from 64 to the more reasonable size 513, as Emacs has done. | 842 buffer from 64 to the more reasonable size 513, as Emacs has done. |
843 From Kenichi Handa. */ | 843 From Kenichi Handa. */ |
844 char buffer[513]; | 844 char buffer[513]; |
891 | 891 |
892 if (status == XLookupKeySym || status == XLookupBoth) | 892 if (status == XLookupKeySym || status == XLookupBoth) |
893 stderr_out (" keysym=%s", XKeysymToString (keysym)); | 893 stderr_out (" keysym=%s", XKeysymToString (keysym)); |
894 if (status == XLookupChars || status == XLookupBoth) | 894 if (status == XLookupChars || status == XLookupBoth) |
895 { | 895 { |
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 stderr_out ("%c", bufptr[j]); |