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#67637: shell-command-default-error-buffer loss of warning Date: Tue, 05 Dec 2023 14:36:39 +0200 Message-ID: <838r686d2g.fsf@gnu.org> References: <87il5dl6xk.5.fsf@jidanni.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16900"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67637@debbugs.gnu.org To: Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 05 13:37:12 2023 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 1rAUfn-0004Ck-Sa for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Dec 2023 13:37:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rAUfY-0008Hh-Ck; Tue, 05 Dec 2023 07:36:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rAUfT-0008HK-Ev for bug-gnu-emacs@gnu.org; Tue, 05 Dec 2023 07:36:52 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rAUfS-0007yi-Tt for bug-gnu-emacs@gnu.org; Tue, 05 Dec 2023 07:36:51 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rAUfe-0002He-10 for bug-gnu-emacs@gnu.org; Tue, 05 Dec 2023 07:37:02 -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, 05 Dec 2023 12:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67637 X-GNU-PR-Package: emacs Original-Received: via spool by 67637-submit@debbugs.gnu.org id=B67637.17017798178761 (code B ref 67637); Tue, 05 Dec 2023 12:37:01 +0000 Original-Received: (at 67637) by debbugs.gnu.org; 5 Dec 2023 12:36:57 +0000 Original-Received: from localhost ([127.0.0.1]:36734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rAUfZ-0002HE-5D for submit@debbugs.gnu.org; Tue, 05 Dec 2023 07:36:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rAUfX-0002Gx-05; Tue, 05 Dec 2023 07:36:55 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rAUfG-0007y8-9O; Tue, 05 Dec 2023 07:36:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=g0Plzqep4dF8T9kSALq20AAWsGPRxUCwQzzOR5TAFmU=; b=sDAcRY1Lk2rr NktK/7UozIs7/0quehrHSs2QL17Z9oguJesV0D2N8DWR6yPmTxA/Uj57jW7QW88eaS8INE5OZbgJ8 NXOV7xuDw3Y6TWHdW/IP6vgw2NW92Dpp92mXzlORZVZsj1sBLf/KYRbHllSQZBkmYlAt1HElle8fE Mn/PU0+jYPI/MdZM3aNJj4msUdJVlDIAFwnXknOqXgXB5Max1CCh0psTunngxAGB1UxQvCEewGs3X LJFwCPAge4N4gW0RbrronKnId3wjqQx0PX/MsBXIcSIqzSC3jCTbQ/1cRtxAtS2b0lFwOi6DIHrZ9 iNr8jSzAXznpS2S+FTUDzA==; In-Reply-To: <87il5dl6xk.5.fsf@jidanni.org> (message from Dan Jacobson on Tue, 05 Dec 2023 10:27:51 +0800) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:275565 Archived-At: tags 67637 wontfix thanks > From: Dan Jacobson > Date: Tue, 05 Dec 2023 10:27:51 +0800 > > (Never mind https://debbugs.gnu.org/cgi/bugreport.cgi?bug=67542 . > I have found the real problem.) > > $ emacs -Q --eval '(setq shell-command-default-error-buffer "shell-command-errors")' > M-! ls zzzzzzzz > (Shell command failed with code 2 and some error output to the "shell-command-errors" buffer) > > OK, we now grow to expect that we will get helpful notification that > something about "some error output to the "shell-command-errors" > buffer". That's great. > > Until one day when we instead do > M-! ls .emacs zzzzzzzz #one file that exists and one that doesn't > > In this case the bug steps in: > Even though there indeed is > "some error output to the "shell-command-errors" > but there is no message in the minibuffer about it! > > That indeed there is also some STDOUT produced does *not* mean > we somehow are in some party mood and no longer care about the fact that > indeed the same complete > "Shell command failed with code 2 and some error output to the "shell-command-errors" buffer" > is 100% still true. > > One might think that "oh, that's just the one line successful output > covering up the error message in the minibuffer." But the same problem > occurs with > M-! ls . zzzzzzzz All I can suggest is "don't do that". Not unless you intend keeping in mind that the error messages are in a separate buffer. This option exists for special situations, not for general-purpose running of shell commands that might produce some important information on standard error stream. I don't think we should do anything here.