changeset 3541:02f6568ceaab

[xemacs-hg @ 2006-08-04 20:55:02 by aidan] Stop TTYs dropping chars when no X11 support built-in.
author aidan
date Fri, 04 Aug 2006 20:55:04 +0000
parents efa52de8c279
children 1ce31579a443
files src/ChangeLog src/event-tty.c
diffstat 2 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Fri Aug 04 20:01:14 2006 +0000
+++ b/src/ChangeLog	Fri Aug 04 20:55:04 2006 +0000
@@ -1,3 +1,10 @@
+2006-08-04  Aidan Kehoe  <kehoea@parhasard.net>
+
+	* event-tty.c (emacs_tty_next_event):
+	Check dispatch_event_queue for pending events, since we add to
+	that in drain_tty_devices(). Fixes dropped key sequences on TTY
+	builds.
+
 2006-08-04  Aidan Kehoe  <kehoea@parhasard.net>
 
 	* syntax.c (Fsyntax_table_p):
--- a/src/event-tty.c	Fri Aug 04 20:01:14 2006 +0000
+++ b/src/event-tty.c	Fri Aug 04 20:55:04 2006 +0000
@@ -113,6 +113,16 @@
       EMACS_TIME time_to_block;
       EMACS_SELECT_TIME select_time_to_block, *pointer_to_this;
 
+      if (!NILP (dispatch_event_queue))
+	{
+	  Lisp_Object event, event2;
+	  event2 = wrap_event (emacs_event);
+	  event = dequeue_dispatch_event ();
+	  Fcopy_event (event, event2);
+	  Fdeallocate_event (event);
+	  return;
+	}
+
       if (!get_low_level_timeout_interval (tty_timer_queue, &time_to_block))
 	/* no timer events; block indefinitely */
  	pointer_to_this = 0;