GNU bug report logs - #67637
shell-command-default-error-buffer loss of warning

Previous Next

Package: emacs;

Reported by: Dan Jacobson <jidanni <at> jidanni.org>

Date: Tue, 5 Dec 2023 02:29:02 UTC

Severity: normal

Tags: wontfix

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 67637 in the body.
You can then email your comments to 67637 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#67637; Package emacs. (Tue, 05 Dec 2023 02:29:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 05 Dec 2023 02:29:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: shell-command-default-error-buffer loss of warning
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









Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#67637; Package emacs. (Tue, 05 Dec 2023 12:37:01 GMT) Full text and rfc822 format available.

Message #8 received at 67637 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dan Jacobson <jidanni <at> jidanni.org>
Cc: 67637 <at> debbugs.gnu.org
Subject: Re: bug#67637: shell-command-default-error-buffer loss of warning
Date: Tue, 05 Dec 2023 14:36:39 +0200
tags 67637 wontfix
thanks

> From: Dan Jacobson <jidanni <at> jidanni.org>
> 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.




Added tag(s) wontfix. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 05 Dec 2023 12:37:02 GMT) Full text and rfc822 format available.

Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Fri, 22 Dec 2023 14:51:02 GMT) Full text and rfc822 format available.

Notification sent to Dan Jacobson <jidanni <at> jidanni.org>:
bug acknowledged by developer. (Fri, 22 Dec 2023 14:51:02 GMT) Full text and rfc822 format available.

Message #15 received at 67637-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 67637-done <at> debbugs.gnu.org, Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#67637: shell-command-default-error-buffer loss of warning
Date: Fri, 22 Dec 2023 06:50:35 -0800
Eli Zaretskii <eliz <at> gnu.org> writes:

> 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.

I'm therefore closing this bug report.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 20 Jan 2024 12:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 111 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.