From: Lars Ingebrigtsen <larsi@gnus.org>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: Andreas Schwab <schwab@suse.de>,
Barry OReilly <gundaetiapo@gmail.com>,
15180@debbugs.gnu.org, Johan Andersson <johan.rejeep@gmail.com>
Subject: bug#15180: Add a way to fflush stdout in batch mode
Date: Sun, 17 Apr 2022 14:05:59 +0200 [thread overview]
Message-ID: <87pmlfap94.fsf_-_@gnus.org> (raw)
In-Reply-To: <jwvsix1x6vo.fsf-monnier+emacsbugs@gnu.org> (Stefan Monnier's message of "Thu, 19 Sep 2013 09:46:26 -0400")
Stefan Monnier <monnier@IRO.UMontreal.CA> writes:
>>> What is the function to flush a stdio stream from Elisp? If it exists then
>>> it could be called before the sleep-for.
>>> An alternative to adding such a function is to simply have the print
>>> functions call fflush in C if noninteractive.
>> That function would be awesome. Is it possible to call such a C function
>> from Elisp?
>
> I guess it would make sense to call fflush in the batch equivalent
> of redisplay.
That sounds attractive, but I think there's a real possibility that that
could have unforeseen effects in older scripts -- uncomplete lines would
be output automatically, and that might break stuff.
So I've instead added a `flush-standard-output' function to Emacs 29, so
that the script writers can control this themselves.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
prev parent reply other threads:[~2022-04-17 12:05 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-24 15:49 bug#15180: Using princ without ending newline Johan Andersson
2013-08-25 1:05 ` Glenn Morris
2013-08-25 7:07 ` Johan Andersson
2013-09-12 6:20 ` Johan Andersson
2013-09-12 8:29 ` Jan Djärv
2013-09-12 8:44 ` Andreas Schwab
2013-09-12 9:40 ` Johan Andersson
2013-09-12 10:02 ` Andreas Schwab
2013-09-12 10:27 ` Johan Andersson
2013-09-12 10:35 ` Andreas Schwab
2013-09-12 10:40 ` Johan Andersson
2013-09-12 10:45 ` Andreas Schwab
2013-09-12 11:47 ` Johan Andersson
2013-09-15 16:42 ` Barry OReilly
2013-09-18 19:49 ` Johan Andersson
2013-09-19 13:46 ` Stefan Monnier
2022-04-17 12:05 ` Lars Ingebrigtsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pmlfap94.fsf_-_@gnus.org \
--to=larsi@gnus.org \
--cc=15180@debbugs.gnu.org \
--cc=gundaetiapo@gmail.com \
--cc=johan.rejeep@gmail.com \
--cc=monnier@IRO.UMontreal.CA \
--cc=schwab@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).