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: Andreas Schwab
Subject: bug#15180: Using princ without ending newline
Date: Thu, 12 Sep 2013 12:02:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Johan Andersson <address@hidden> 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, address@hidden
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]