From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#67637: shell-command-default-error-buffer loss of warning Date: Tue, 05 Dec 2023 10:27:51 +0800 Message-ID: <87il5dl6xk.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9449"; mail-complaints-to="usenet@ciao.gmane.io" To: 67637@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 05 03:29:09 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 1rALBL-0002BC-41 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Dec 2023 03:29:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rALB8-0005dk-Nj; Mon, 04 Dec 2023 21:28:54 -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 1rALB6-0005dX-M0 for bug-gnu-emacs@gnu.org; Mon, 04 Dec 2023 21:28: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 1rALB6-00012f-DS for bug-gnu-emacs@gnu.org; Mon, 04 Dec 2023 21:28:52 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rALBG-0005pE-GB for bug-gnu-emacs@gnu.org; Mon, 04 Dec 2023 21:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Dec 2023 02:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67637 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.170174329722308 (code B ref -1); Tue, 05 Dec 2023 02:29:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Dec 2023 02:28:17 +0000 Original-Received: from localhost ([127.0.0.1]:36197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rALAW-0005nj-RA for submit@debbugs.gnu.org; Mon, 04 Dec 2023 21:28:17 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:41458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rALAV-0005nT-2X for submit@debbugs.gnu.org; Mon, 04 Dec 2023 21:28:15 -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 1rALAE-0005UR-R0 for bug-gnu-emacs@gnu.org; Mon, 04 Dec 2023 21:27:58 -0500 Original-Received: from seashell.cherry.relay.mailchannels.net ([23.83.223.162]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rALAC-0000yS-U0 for bug-gnu-emacs@gnu.org; Mon, 04 Dec 2023 21:27:58 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 3718C361F6D for ; Tue, 5 Dec 2023 02:27:55 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a315.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id E91C3361FFC for ; Tue, 5 Dec 2023 02:27:54 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1701743274; a=rsa-sha256; cv=none; b=aVirU2I5w5fbUCPwWk0LjhK3vjyEEq40Pxz2qqTVYIk4u4tY3ydyCDuaMz8Au2hPH/xnZ/ DVZjBlOtZ0DNeqZyK5412TjiNWp8BGUz21CsVKfMma2W6dd6swmQtZSK4EXikL1UmMgTci AUidRWenmuh7XOtXRb6O0XjRvO+/lqVS0jc2hwh9eSLTEX077ehsYC5+P9YREDymt91doC v2ZRdxM9+8d4QNaquHzWbT2Qs4Dxz7jZjGRM7ElrNocxVABUz85syLvgxZ2LRhB8+E+pMB IhsAkgqKMgxTdV0jElGb2LSpjka7sCgB12pRv+wSIqaAfj9sv9I6rGpDJ+L0Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1701743274; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: dkim-signature; bh=7ADxb9xMx3LH4H9BUXSC/BNSlp2XtrfdvGKb931Stfc=; b=ijTSpp30UcwA7HS3dCwu7aMyQt6fvV6m4Sntl7jkEK9XQ0o0qjeMOLykHPEFytz9po0r8i nvIskoVAxcEfnS3HiR33iP7ugkMm7Kosv2bP66tFww4SArzQxfJ0WbJacoMulCo7DfwmGP sxgm4aMPdt0ObvQ7lPEgNBmnYiYeqH+emMnD1whN60ew/uiyh0WZugvoqEfGFht7Z1aGvd tHYjTXR+JbDQvmRtatjGZMVfk5EiIq79JulmR/XmAqdr3kxoKxuG+iV41VDQF+tmIcRAEi H0YcdZacCXGXdWOEy28W3PYC7hs3U8YeXh1fRgr6JQuoC/gmFJ2rrwbttgez7w== ARC-Authentication-Results: i=1; rspamd-d88d8bd54-pbpsl; auth=pass smtp.auth=dreamhost smtp.mailfrom=jidanni@jidanni.org X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Macabre-Lettuce: 6fe4e5554d4b774f_1701743275058_347237891 X-MC-Loop-Signature: 1701743275058:3738865105 X-MC-Ingress-Time: 1701743275058 Original-Received: from pdx1-sub0-mail-a315.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.120.2.6 (trex/6.9.2); Tue, 05 Dec 2023 02:27:55 +0000 Original-Received: from jidanni.org (1-165-253-176.dynamic-ip.hinet.net [1.165.253.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a315.dreamhost.com (Postfix) with ESMTPSA id 4SkkwB5SpKzFQ for ; Mon, 4 Dec 2023 18:27:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jidanni.org; s=dreamhost; t=1701743274; bh=7ADxb9xMx3LH4H9BUXSC/BNSlp2XtrfdvGKb931Stfc=; h=From:To:Subject:Date:Content-Type; b=xGpz+3AsU9ZCP4GK5u368YiuUGtnRhEYSyOT4HAUp1wGLN6DhugBCAMF9mIWSU/de IkbNzOETw+BCvQmW79FZJQ/jE5JaBREO1ucz6C6PXDNBwRk1zhYkmKGEaw0FeJPEWD eoLd9zPf6vZZk2v4Q8p35ZZtzRtfsP57cfFLGgW50dsXiqOOBV2g/SyiHElHBvx58l eHlgY5LNT4lw+8+AadHUAq232anQuANUI7XKLTnOAIKbs+CiZct+amDGGUKfYboyrw VqBOhRXUPr9txaXGYEM6NxADghb8nQaUKbdpqIlU45DCGS+XC0eH9Pc/7M+hPp9BD8 AGDe4KBthmNYg== Received-SPF: pass client-ip=23.83.223.162; envelope-from=jidanni@jidanni.org; helo=seashell.cherry.relay.mailchannels.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:275546 Archived-At: (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