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: Fri, 12 Feb 2021 22:03:40 +0200 Message-ID: <83tuqhdper.fsf@gnu.org> References: <83h7mlj75u.fsf@gnu.org> <83eehpj640.fsf@gnu.org> <83pn17j4pw.fsf@gnu.org> <831rdmitlz.fsf@gnu.org> <83a6sagz1n.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3224"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46388@debbugs.gnu.org, eggert@cs.ucla.edu To: Ioannis Kappas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 12 21:04:52 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 1lAegN-0000jW-GK for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Feb 2021 21:04:51 +0100 Original-Received: from localhost ([::1]:59292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAegM-0007Cr-JW for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Feb 2021 15:04:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAefa-0007BD-B8 for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2021 15:04:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49732) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lAefa-00072j-2g for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2021 15:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lAefZ-0001vq-V3 for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2021 15:04: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: Fri, 12 Feb 2021 20:04: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.16131602257401 (code B ref 46388); Fri, 12 Feb 2021 20:04:01 +0000 Original-Received: (at 46388) by debbugs.gnu.org; 12 Feb 2021 20:03:45 +0000 Original-Received: from localhost ([127.0.0.1]:33045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAefJ-0001vJ-A7 for submit@debbugs.gnu.org; Fri, 12 Feb 2021 15:03:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAefF-0001v5-LH for 46388@debbugs.gnu.org; Fri, 12 Feb 2021 15:03:44 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59432) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAef7-0006rL-M3; Fri, 12 Feb 2021 15:03:35 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1746 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lAef6-0006PX-GL; Fri, 12 Feb 2021 15:03:33 -0500 In-Reply-To: (message from Ioannis Kappas on Fri, 12 Feb 2021 19:59:02 +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:199881 Archived-At: > From: Ioannis Kappas > Date: Fri, 12 Feb 2021 19:59:02 +0000 > Cc: Paul Eggert , 46388@debbugs.gnu.org > > How do you suggest we flush the message out so that it is always > displayed to the user irrespective of the architecture/prompt it is > ran on? Is there perhaps an elisp function to flush messages out (e.g. > (progn (message "...") (message-flush!) (sit-for ...))) ? > > So far we said: > 1. We don't want to a solution where the emacs -batch's stderrr is > forced to unbuffered mode (original patch proposal) > 2. message_to_stderr() does not directly or indirectly invoke stderr > flush (at least in windows). As I said, this cannot be helped, not until we teach Emacs on Windows to use the pseudo-console. This is how the platform behaves when we use pipes. Sorry, there's no way around this.