emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug#141: Process sentinel not called in batch mode


From: Stefan Monnier
Subject: Re: bug#141: Process sentinel not called in batch mode
Date: Fri, 16 May 2008 12:57:16 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>> >> This problem occurs because wait_reading_process_output only calls
>> >> status_notify when given a nonzero DO_DISPLAY argument (process.c:4451).
>> >> Although wait_reading_process_output is called from many places in
>> >> Emacs, it is given a nonzero DO_DISPLAY argument only during
>> >> kbd_buffer_get_event.  But that function is never called in batch mode.
>> 
>> >     Does anyone know why we test do_display there?
>> 
>> > I think the idea is, if you are going to update the display, it is
>> > good to display the fact that a process has terminated.
>> 
>> This side I understand, but what about the other: why should we not
>> check process status in the case where we are not redisplaying?

> Because Emacs generally looks at process output only when it's idle?

I don't follow: we're talking about when should
wait_reading_process_output check status_notify.

So to repeat/rephrase my question: why doesn't
wait_reading_process_output call status_notify when it is passed a zero
do_display?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]