What about providing a custom variable to control this? I like the line buffer. ________________________________ From: Emacs-devel on behalf of Paul Eggert Sent: Monday, June 24, 2019 4:34 To: Daniele Nicolodi Cc: emacs-devel@gnu.org Subject: Re: `message' not outputting the newline "atomically" Daniele Nicolodi wrote: > I thought that the issue is only with > output omitted by (message) function call. Although the original bug report was indeed about 'message', the problem can occur with any output sent to stderr, and merely fiddling with 'message' will not fix the more-general problem. > It is funny how message_to_stderr() has an explicit fflush(stderr) at > the end. Yes, there is a lot of cargo-culting in the stdio part of the Emacs source code, as nobody has taken the time to review all the unnecessary cruft that has accumulated over the years; the fflush you mentioned is just part of the problem. And although I *did* take the time to do this one little thing right, I have been asked to revert the fix because of purely-hypothetical fear of change. It is frustrating, indeed. Eli essentially ordered me to revert the change, so I just now did that. He's the maintainer.