emacs-devel
[Top][All Lists]
Advanced

[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: Sun, 23 Jun 2019 13:34:37 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1

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.



reply via email to

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