all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Marcin Borkowski <mbork@mbork.pl>
Cc: emacs-devel@gnu.org, juri@linkov.net
Subject: Re: async-shell-command and prefix argument
Date: Sun, 20 Jan 2019 17:39:49 +0200	[thread overview]
Message-ID: <835zujbanu.fsf@gnu.org> (raw)
In-Reply-To: <87lg3foqwh.fsf@mbork.pl> (message from Marcin Borkowski on Sun,  20 Jan 2019 06:10:38 +0100)

> From: Marcin Borkowski <mbork@mbork.pl>
> Cc: Juri Linkov <juri@linkov.net>, emacs-devel@gnu.org
> Date: Sun, 20 Jan 2019 06:10:38 +0100
> 
> I'm astonished, however, that you consider this a `weird use-case'.

It is weird because you, in effect, give up any diagnostic output from
the command, such as warnings or errors, up front.  Since no one can
reliably predict such diagnostics, I wonder how do you even know that
those commands did what you intended them to do.  It's like flying
blind while also turning off all the instruments.

> OTOH, some external commands are there only for their side effects -
> think `rm' or `aunpack or `xdg-open'.  (Notice that the last two often
> /have/ output, only that you may be not interested in seeing it.)

Commands invoked "for side effects" will not produce any output, so
setting async-shell-command-display-buffer to nil will do exactly what
(I think) you want: display nothing if there's no output, and display
the diagnostics otherwise.

OTOH, if such a command does display something, it means the author of
the command thought it was important enough to show that, even though
the command is "for side effects".

> Does it make sense?

Not really, sorry.



  reply	other threads:[~2019-01-20 15:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-14 20:49 async-shell-command and prefix argument Marcin Borkowski
2019-01-15 17:32 ` Eli Zaretskii
2019-01-16  8:26   ` Marcin Borkowski
2019-01-19 21:19     ` Juri Linkov
2019-01-20  3:40       ` Eli Zaretskii
2019-01-20  5:10         ` Marcin Borkowski
2019-01-20 15:39           ` Eli Zaretskii [this message]
2019-01-20 20:26             ` Marcin Borkowski
2019-01-21 15:54               ` Eli Zaretskii
2019-01-24 17:32                 ` Marcin Borkowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=835zujbanu.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=juri@linkov.net \
    --cc=mbork@mbork.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.