And what is "Non-interactive output"?


On Thu, Sep 12, 2013 at 12:02 PM, Andreas Schwab <schwab@suse.de> wrote:
Johan Andersson <johan.rejeep@gmail.com> writes:

> Create a file called *princ.el* with this content:
>
> (princ "foo\n")
> (princ "bar")
> (princ "baz")
> (sleep-for 3)
>
> Run command: emacs -Q --script princ.el
>
> I expect this to be printed *directly*:
> foo
> barbaz
>
> But what happens is that "foo" is printed directly and then after three
> seconds "barbaz" is printed.

This is not a bug.  Non-interactive output is subject to the usual stdio
buffering.

Andreas.

--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."