GNU bug report logs - #46388
27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt

Previous Next

Package: emacs;

Reported by: Ioannis Kappas <ioannis.kappas <at> gmail.com>

Date: Mon, 8 Feb 2021 21:22:02 UTC

Severity: normal

Found in version 27.1

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ioannis Kappas <ioannis.kappas <at> gmail.com>
Cc: 46388 <at> debbugs.gnu.org
Subject: bug#46388: 27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt
Date: Tue, 09 Feb 2021 05:38:46 +0200
> From: Ioannis Kappas <ioannis.kappas <at> gmail.com>
> Date: Mon, 8 Feb 2021 21:20:47 +0000
> 
>     There appears to be an issue with the /message/ function when
>     emacs is invoked in -batch mode on windows-nt from outside the
>     windows console (i.e. not directly from the command
>     prompt). Messages are not displayed to the user until emacs exits.
> 
>     Consider the following command from example, which suppose to
>     print the message "hi" first to the user and then exit after 5 seconds:
> 
>     : emacs -Q --batch --eval="(progn (message \"hi\") (sit-for 5))"
> 
>     When this command is invoked from within an emacs eshell on
>     windows, the message is only displayed to the user after about 5 seconds,
>     i.e when emacs is about to exit.

I believe this is because of buffering: Eshell on MS-Windows invokes
subprograms via pipes, which are buffered.




This bug report was last modified 4 years and 127 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.