emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#46388: closed (27.1; emacs -batch does not output messages immediate


From: GNU bug Tracking System
Subject: bug#46388: closed (27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt)
Date: Thu, 11 Mar 2021 18:44:02 +0000

Your message dated Thu, 11 Mar 2021 10:43:40 -0800
with message-id <34cf6aaa-ee85-fbdc-3e39-5f4f44eb1ac9@cs.ucla.edu>
and subject line Re: bug#46388: 27.1; emacs -batch does not output messages 
immediately when invoked outside of the command prompt
has caused the debbugs.gnu.org bug report #46388,
regarding 27.1; emacs -batch does not output messages immediately when invoked 
outside of the command prompt
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
46388: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=46388
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt 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.

    Here is a small summary running the above under Linux and windows
    native:

    | system              | invoked from   | terminal output
                 |
    
|---------------------+----------------+--------------------------------------------|
    | x86_64-pc-linux-gnu | terminal       | prints "hi", then after 5
seconds it exits |
    | x86_64-pc-linux-gnu | emacs eshell   | prints "hi", then after 5
seconds it exits |
    | x86_64-w64-mingw32  | command prompt | prints "hi", then after 5
seconds it exits |
    | x86_64-w64-mingw32  | emacs eshell   | after 5 seconds prints
"hi", then exits    |

    The issue on windows is not exclusive to invoking emacs -batch
    from within emacs (e.g. from eshell), it applies to any invocation
that happens
    outside the command prompt, e.g. from inside the MSYS2 mintty
    terminal.

    It appears as if the issue is caused by a different stderr
    buffering mode used when a program is invoked outside of
    the command prompt. Analysis to follow.

In GNU Emacs 27.1 (build 1, x86_64-w64-mingw32)
 of 2020-11-19 built on fv-az68-340
Repository revision: ec297125a76481c55390d0b329e541907879d6f3
Repository branch: master
Windowing system distributor 'Microsoft Corp.', version 10



--- End Message ---
--- Begin Message --- Subject: Re: bug#46388: 27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt Date: Thu, 11 Mar 2021 10:43:40 -0800 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1
On 3/11/21 6:27 AM, Eli Zaretskii wrote:
This is fine, please install.

OK, done, and closing the bug report.


--- End Message ---

reply via email to

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