[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `message' not outputting the newline "atomically"
From: |
Stefan Monnier |
Subject: |
Re: `message' not outputting the newline "atomically" |
Date: |
Thu, 20 Jun 2019 09:32:48 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> $ strace -o /tmp/tr emacs -Q -batch -eval '(message "hello")'
> hello
> $ grep '^write(2,' /tmp/tr
> write(2, "hello", 5) = 5
> write(2, "\n", 1) = 1
>
> There should be just one 'write' system call, not two.
Rather than fiddle with the line-buffering, how hard would it be to
change our code such that there's a single call to `fprintf` (or
whichever function it is we use in that code) which prints both the
"hello" and the "\n"?
Stefan
- Re: `message' not outputting the newline "atomically", (continued)
- Re: `message' not outputting the newline "atomically", Stefan Monnier, 2019/06/23
- Re: `message' not outputting the newline "atomically", Eli Zaretskii, 2019/06/23
- Re: `message' not outputting the newline "atomically", Stefan Monnier, 2019/06/24
- Re: `message' not outputting the newline "atomically", Andreas Schwab, 2019/06/22
- Re: `message' not outputting the newline "atomically", Paul Eggert, 2019/06/22
- Re: `message' not outputting the newline "atomically", Eli Zaretskii, 2019/06/22
- Re: `message' not outputting the newline "atomically", Paul Eggert, 2019/06/22
- Re: `message' not outputting the newline "atomically", Andreas Schwab, 2019/06/22
- Re: `message' not outputting the newline "atomically",
Stefan Monnier <=
- Re: `message' not outputting the newline "atomically", Paul Eggert, 2019/06/20
- Re: `message' not outputting the newline "atomically", Daniele Nicolodi, 2019/06/23
- Re: `message' not outputting the newline "atomically", Paul Eggert, 2019/06/23
- Re: `message' not outputting the newline "atomically", Lars Ingebrigtsen, 2019/06/23
- Re: `message' not outputting the newline "atomically", Paul Eggert, 2019/06/23
- Re: `message' not outputting the newline "atomically", Lars Ingebrigtsen, 2019/06/23
- Re: `message' not outputting the newline "atomically", Daniele Nicolodi, 2019/06/23
- Re: `message' not outputting the newline "atomically", Eli Zaretskii, 2019/06/23
- Re: `message' not outputting the newline "atomically", HaiJun Zhang, 2019/06/23
Re: `message' not outputting the newline "atomically", Lars Ingebrigtsen, 2019/06/24