From xemacs-m  Mon Mar  3 07:29:57 1997
Received: from maes.esrin.esa.it (maes.esrin.esa.it [192.106.252.50])
	by xemacs.org (8.8.5/8.8.5) with SMTP id HAA18333
	for <xemacs-beta@xemacs.org>; Mon, 3 Mar 1997 07:29:51 -0600 (CST)
Received: from mail.esrin.esa.it (plod.esrin.esa.it) by maes.esrin.esa.it with SMTP id AA18121
  (5.65c/IDA-1.4.4 for <xemacs-beta@xemacs.org>); Mon, 3 Mar 1997 14:29:51 +0100
Received: from penelope.esa.it by mail.esrin.esa.it (4.1/SMI-4.1)
	id AA12111; Mon, 3 Mar 97 13:29:56 GMT
Date: Mon, 3 Mar 97 13:29:56 GMT
Message-Id: <9703031329.AA12111@mail.esrin.esa.it>
Received: by penelope.esa.it (4.1/SMI-4.1)
	id AA06400; Mon, 3 Mar 97 14:34:35 +0100
From: Simon Marshall <Simon.Marshall@esrin.esa.it>
To: XEmacs Beta <xemacs-beta@xemacs.org>
In-Reply-To: <m27mjqvtz8.fsf@altair.xemacs.org> (message from Steven L Baur on
	02 Mar 1997 13:56:11 -0800)
Subject: Re: [19.15b95]: input-pending-p is nil even after keypress
Reply-To: Simon Marshall <Simon.Marshall@esrin.esa.it>

sb> Can anyone duplicate this with the latest betas on any platform?

I can with 19.15b96, SunOS 4.1.3, gcc-2.7.2 -g -O2 -pipe, x11r5.28.

The original report was:

------- Start of forwarded message -------
Date: Tue, 25 Feb 97 16:12:31 GMT
From: Simon Marshall <Simon.Marshall@esrin.esa.it>
To: XEmacs Beta <xemacs-beta@xemacs.org>
Subject: [19.15b95]: input-pending-p is nil even after keypress
Reply-To: Simon Marshall <Simon.Marshall@esrin.esa.it>

It seems that input-pending-p returns nil even after a simple keypress:

xemacs -no-init-file -no-site-file

(progn
  (loop for fubar from 1 to 10000 by 1)
  (input-pending-p)) C-j C-p
 => nil

Which is wrong.  If I replace the loop with (sit-for 5) or add (sit-for 5)
before or after the loop, then the value is t.
------- End of forwarded message -------

