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

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

bug#15180: Using princ without ending newline


From: Johan Andersson
Subject: bug#15180: Using princ without ending newline
Date: Thu, 12 Sep 2013 12:27:06 +0200

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."


reply via email to

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