[Top][All Lists]

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

Re: `message' not outputting the newline "atomically"

From: Paul Eggert
Subject: Re: `message' not outputting the newline "atomically"
Date: Wed, 26 Jun 2019 22:43:12 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1

However, if that is the route you are suggesting, it is much easier to
enable line buffering unconditionally ad place fflush() calls where it
matters, than the other way around.
You are suggesting fflush after every character written?

I think he was suggesting enabling line buffering (_IOLBF) unconditionally, and also placing fflush where we want the output right away even on MS-Windows. The fflush would be needed only for MS-Windows, because MS-Windows is the only Emacs platform where using _IOLBF does not work (MS-Windows silently treats requests to use line buffering as if they requested full buffering, which is not what we want for stderr).

If this is the compromise needed to fix this problem then let's do it. _IOLBF is a simple and effective solution to this problem on GNU and other POSIXish platforms, and we shouldn't let MS-Windows's lack of support for a useful feature prevent Emacs from using the feature on non-MS-Windows platforms.

reply via email to

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