From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs 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 Message-ID: <835z31lxkp.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21725"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46388@debbugs.gnu.org To: Ioannis Kappas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 09 04:39:18 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l9Jry-0005Y2-9n for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Feb 2021 04:39:18 +0100 Original-Received: from localhost ([::1]:53412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9Jrw-0008U5-SL for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Feb 2021 22:39:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9Jrh-0008Tx-V9 for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2021 22:39:01 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40767) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l9Jrh-0008Ct-O1 for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2021 22:39:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l9Jrh-0002oj-LJ for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2021 22:39:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Feb 2021 03:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46388 X-GNU-PR-Package: emacs Original-Received: via spool by 46388-submit@debbugs.gnu.org id=B46388.161284193810820 (code B ref 46388); Tue, 09 Feb 2021 03:39:01 +0000 Original-Received: (at 46388) by debbugs.gnu.org; 9 Feb 2021 03:38:58 +0000 Original-Received: from localhost ([127.0.0.1]:52313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9Jrd-0002oS-J3 for submit@debbugs.gnu.org; Mon, 08 Feb 2021 22:38:57 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9Jra-0002oD-O0 for 46388@debbugs.gnu.org; Mon, 08 Feb 2021 22:38:55 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37634) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9JrV-00085g-Gd; Mon, 08 Feb 2021 22:38:49 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3155 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l9JrU-0006h3-Qk; Mon, 08 Feb 2021 22:38:49 -0500 In-Reply-To: (message from Ioannis Kappas on Mon, 8 Feb 2021 21:20:47 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:199651 Archived-At: > From: Ioannis Kappas > 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.