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: HaiJun Zhang
Subject: Re: `message' not outputting the newline "atomically"
Date: Mon, 24 Jun 2019 02:51:13 +0000

What about providing a custom variable to control this? I like the line buffer.


From: Emacs-devel <emacs-devel-bounces+netjune=address@hidden> on behalf of Paul Eggert <address@hidden>
Sent: Monday, June 24, 2019 4:34
To: Daniele Nicolodi
Cc: address@hidden
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.


reply via email to

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