[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sit-for
From: |
David Kastrup |
Subject: |
Re: sit-for |
Date: |
Wed, 02 Aug 2006 08:06:09 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
address@hidden (Kim F. Storm) writes:
> Chong Yidong <address@hidden> writes:
>
>>> Since we have the new sit-for implementation, I have a lot of times
>>> when Emacs just pauses in busy waiting for input. This happens
>>> spontaneously. One situation where it happens frequently is when
>>> reading news with gnus.
>>
>> Another possibility just occurred to me. Unlike the old sit-for, the
>> new sit-for is not interrupted by input coming from processes (as
>> opposed to user input). If gnus (or some other package) relies on
>> this behavior, a bug will arise.
>
> IMO, sit-for should never be interrupted by input coming from a
> subprocess (that is what accept-process-output is for), and code
> which relies on that behaviour is wrong.
accept-process-output does not redraw the screen, so it can't do that.
> Process output is _not_ input in the normal sense. AFAICS, process
> output is still read during sit-for and passed to the proper filters
> or buffers--so the new sit-for is doing TRT.
_If_ it indeed processes the input.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum