help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: start-process and set-process-filter sequence


From: William Xu
Subject: Re: start-process and set-process-filter sequence
Date: Fri, 15 Apr 2011 10:16:09 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt)

Thien-Thi Nguyen <ttn@gnuvola.org> writes:

   Process output is distributed to filters when Emacs has nothing else
   to do, such as when pausing for interaction (‘read-string’ et al).
   (You can also explicitly request it via ‘accept-process-output’ but
   that is not germane.)

   So the best strategy is to not allow such pauses in the first place.
   E.g., you could add an abstraction ‘start-filtered-process’ and make
   sure you use ‘start-filtered-process’ everywhere you'd normally use
   a naked ‘start-process’.

I see, Thanks.  It looks like a bug or shortcoming, though.  I was
expecting the sequence to be similar to this:

,----
| Filter *filter = new Filter;
| Process *proc = new Process(filter);
| proc->start();
`----

-- 
William

http://xwl.appspot.com




reply via email to

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