all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#67637: shell-command-default-error-buffer loss of warning
@ 2023-12-05  2:27 Dan Jacobson
  2023-12-05 12:36 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Jacobson @ 2023-12-05  2:27 UTC (permalink / raw)
  To: 67637

(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










^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#67637: shell-command-default-error-buffer loss of warning
  2023-12-05  2:27 bug#67637: shell-command-default-error-buffer loss of warning Dan Jacobson
@ 2023-12-05 12:36 ` Eli Zaretskii
  2023-12-22 14:50   ` Stefan Kangas
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2023-12-05 12:36 UTC (permalink / raw)
  To: Dan Jacobson; +Cc: 67637

tags 67637 wontfix
thanks

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#67637: shell-command-default-error-buffer loss of warning
  2023-12-05 12:36 ` Eli Zaretskii
@ 2023-12-22 14:50   ` Stefan Kangas
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Kangas @ 2023-12-22 14:50 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 67637-done, Dan Jacobson

Eli Zaretskii <eliz@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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-12-22 14:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-05  2:27 bug#67637: shell-command-default-error-buffer loss of warning Dan Jacobson
2023-12-05 12:36 ` Eli Zaretskii
2023-12-22 14:50   ` Stefan Kangas

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.