From xemacs-m  Wed Jan 15 13:40:31 1997
Received: from UCSD.EDU (mailbox1.ucsd.edu [132.239.1.53])
          by xemacs.org (8.8.4/8.8.4) with ESMTP
	  id NAA23290 for <xemacs-beta@xemacs.org>; Wed, 15 Jan 1997 13:40:30 -0600 (CST)
Received: from sdnp5.ucsd.edu (sdnp5.ucsd.edu [132.239.79.10]) by UCSD.EDU (8.8.3/8.6.9) with SMTP id LAA13728 for <xemacs-beta@xemacs.org>; Wed, 15 Jan 1997 11:40:30 -0800 (PST)
Received: by sdnp5.ucsd.edu (SMI-8.6/SMI-SVR4)
	id LAA18554; Wed, 15 Jan 1997 11:38:11 -0800
Sender: dmoore@sdnp5.ucsd.edu
To: XEmacs Beta Mailing List <xemacs-beta@xemacs.org>
Subject: Re: 20.0-b90: some bugs
References: <18358.853186100@rtp.ericsson.se> <199701150713.XAA28262@xemacs.eng.sun.com>
X-Face: "oX;zS#-JU$-,WKSzG.1gGE]x^cIg!hW.dq>.f6pzS^A+(k!T|M:}5{_%>Io<>L&{hO7W4cicOQ|>/lZ1G(m%7iaCf,6Qgk0%%Bz7b2-W3jd0m_UG\Y;?]}4s0O-U)uox>P3JN)9cm]O\@,vy2e{`3pb!"pqmRy3peB90*2L
Mail-Copies-To: never
From: David Moore <dmoore@UCSD.EDU>
Date: 15 Jan 1997 11:38:10 -0800
In-Reply-To: Martin Buchholz's message of Tue, 14 Jan 1997 23:13:24 -0800
Message-ID: <rvhgkin2zh.fsf@sdnp5.ucsd.edu>
Lines: 34
X-Mailer: Red Gnus v0.80/XEmacs 19.15

Martin Buchholz <mrb@Eng.Sun.COM> writes:

> I fixed a bug (accept-process-output) in 19.14 that had the exact same
> symptoms.  I checked the versions of accept-process-output between my
> personal workspace and Steven's (there is some slight divergence) and
> noticed that accept-process-output is different.  Perhaps the code in
> the following diff is responsible.  Where did this code come from???
> Would undoing this change fix the problem?

	I provided the event_stream_wakeup_pending_p code, it's the fix
for the sit-for and other bugs where you recursively call sit-for,
sleep-for or accept-process-output.  However I messed up in
accept-process-output and checked an unitialized variable.  Patch below.


	I don't know where the focus_follows_mouse code comes from.

--- event-stream.c.orig	Wed Jan 15 11:36:25 1997
+++ event-stream.c	Wed Jan 15 11:36:33 1997
@@ -2432,7 +2432,7 @@
 	 || (!EQ (result, Qt) && event_stream_event_pending_p (0)))
     {
       /* If our timeout has arrived, we move along. */
-      if (!event_stream_wakeup_pending_p (timeout_id, 0))
+      if (timeout_enabled && !event_stream_wakeup_pending_p (timeout_id, 0))
 	{
 	  timeout_enabled = 0;
 	  process = Qnil;	/* We're  done. */

-- 
David Moore <dmoore@ucsd.edu>       | Computer Systems Lab      __o
UCSD Dept. Computer Science - 0114  | Work: (619) 534-8604    _ \<,_
La Jolla, CA 92093-0114             | Fax:  (619) 534-1445   (_)/ (_)
<URL:http://oj.egbt.org/dmoore/>    | In cloud bones of steel.

