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

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

Re: How to flush output to process


From: Eli Zaretskii
Subject: Re: How to flush output to process
Date: Sun, 06 Nov 2011 06:07:17 -0500

> From: Frank Fischer <frank-fischer@shadow-soft.de>
> Date: Sun, 6 Nov 2011 09:53:39 +0000 (UTC)
> 
> In something like C I would use fflush(...) to force the buffered data
> to be sent to the process (and it works), but I have not been able to
> find some comparable function for Emacs Lisp. 
> 
> Is there a way the flush the Emacs->process stream, i.e., force all
> buffered data to be actually send to the process, from Emacs Lisp?

I'm guessing that your analysis of the problem (and therefore the
solution you are seeking) is incorrect.  I think it's the sub-process
who is buffering input until it sees a newline.

To fix this, make sure your subprocess reads its stdin in raw mode,
not in cooked mode.



reply via email to

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