Mercurial > hg > xemacs-beta
diff src/event-Xt.c @ 771:943eaba38521
[xemacs-hg @ 2002-03-13 08:51:24 by ben]
The big ben-mule-21-5 check-in!
Various files were added and deleted. See CHANGES-ben-mule.
There are still some test suite failures. No crashes, though.
Many of the failures have to do with problems in the test suite itself
rather than in the actual code. I'll be addressing these in the next
day or so -- none of the test suite failures are at all critical.
Meanwhile I'll be trying to address the biggest issues -- i.e. build
or run failures, which will almost certainly happen on various platforms.
All comments should be sent to ben@xemacs.org -- use a Cc: if necessary
when sending to mailing lists. There will be pre- and post- tags,
something like
pre-ben-mule-21-5-merge-in, and
post-ben-mule-21-5-merge-in.
author | ben |
---|---|
date | Wed, 13 Mar 2002 08:54:06 +0000 |
parents | fdefd0186b75 |
children | 026c5bf9c134 |
line wrap: on
line diff
--- a/src/event-Xt.c Fri Mar 08 13:33:14 2002 +0000 +++ b/src/event-Xt.c Wed Mar 13 08:54:06 2002 +0000 @@ -1,7 +1,7 @@ /* The event_stream interface for X11 with Xt, and/or tty frames. Copyright (C) 1991-5, 1997 Free Software Foundation, Inc. Copyright (C) 1995 Sun Microsystems, Inc. - Copyright (C) 1996 Ben Wing. + Copyright (C) 1996, 2001 Ben Wing. This file is part of XEmacs. @@ -30,7 +30,7 @@ #include "EmacsFrame.h" #include "blocktype.h" -#include "buffer.h" +#include "charset.h" #include "console.h" #include "console-tty.h" #include "events.h" @@ -1054,10 +1054,10 @@ fb_instream = make_fixed_buffer_input_stream (bufptr, len); - /* #### Use Fget_coding_system (Vcomposed_input_coding_system) */ + /* #### Use get_coding_system_for_text_file (Vcomposed_input_coding_system, 0) */ instream = - make_decoding_input_stream (XLSTREAM (fb_instream), - Fget_coding_system (Qundecided)); + make_coding_input_stream + (XLSTREAM (fb_instream), Qundecided, CODING_DECODE); istr = XLSTREAM (instream); @@ -2416,8 +2416,8 @@ assert (tty_events_occurred > 0); tty_events_occurred--; filedesc_with_input[i] = Qnil; - if (read_event_from_tty_or_stream_desc - (emacs_event, XCONSOLE (console), i)) + if (read_event_from_tty_or_stream_desc (emacs_event, + XCONSOLE (console))) return 1; } } @@ -2445,12 +2445,7 @@ stderr_out (" %s", w->core.widget_class->core_class.class_name); f = x_any_window_to_frame (get_device_from_display (display), window); if (f) - { - char *buf = alloca_array (char, XSTRING_LENGTH (f->name) + 4); - sprintf (buf, " \"%s\"", XSTRING_DATA (f->name)); - write_string_to_stdio_stream (stderr, 0, (Intbyte *) buf, 0, - strlen (buf), Qterminal, 1); - } + stderr_out_lisp (" \"%s\"", 1, f->name); stderr_out ("\n"); } @@ -2888,7 +2883,7 @@ return; event = Fmake_event (Qnil, Qnil); - if (!read_event_from_tty_or_stream_desc (XEVENT (event), con, infd)) + if (!read_event_from_tty_or_stream_desc (XEVENT (event), con)) /* EOF, or something ... */ return; /* #### bogus. quit-char should be allowed to be any sort @@ -3370,10 +3365,6 @@ event_stream = Xt_event_stream; -#if defined(HAVE_XIM) || defined(USE_XFONTSET) - Initialize_Locale(); -#endif /* HAVE_XIM || USE_XFONTSET */ - XtToolkitInitialize (); Xt_app_con = XtCreateApplicationContext (); XtAppSetFallbackResources (Xt_app_con, (String *) x_fallback_resources);