all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marius Hofert <marius.hofert@math.ethz.ch>
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to suppress/avoid *Async Shell Command* buffer?
Date: Sat, 18 May 2013 20:03:57 +0200	[thread overview]
Message-ID: <87sj1kb1wy.fsf@math.ethz.ch> (raw)
In-Reply-To: <5197B6A8.7070305@easy-emacs.de>


Andreas Röhler writes:

> Am 18.05.2013 16:37, schrieb Marius Hofert:
>> Hi Andreas,
>>
>> what do you mean by 'caused'?
>>
>> The question mark is a place holder for the file (foo.pdf).
>
> Okay, see dired-do-shell-command reads it
>
>> What does this have to do with *Async Shell Command* being opened?
>>
>
> Nothing. It's the ampersand following ? which matters.

Yes, this runs the command *asynchronously* (that's where the name of
the annoying buffer comes from).

If not run asynchronously (i.e., if run without ampersand), emacs is
blocked. Also, closing emacs closes the external application, too. Both
behaviors I find strange / are undesirable.

>
>> Note: The behavior of "!" on foo.pdf in dired mode is fine (in the sense
>> that Okular opens, the pdf is shown, everything asynchronously), I just want
>> to avoid the buffer *Async Shell Command* being opened.
>>
>
> Which seems the buffer Emacs connects the process to.
> Deleting it should end the processes, probably not a good idea.

When run asynchronously, closing emacs does *not* close the external
application. I like this behavior very much.

>
>
> So the ampersand seems the culprit - not the question mark.
> What happens when calling your stuff without it?

Then no buffer is open (which was clear since the command is not run
asynchronously). The question is how to avoid the buffer being opened
*when* using the command asynchronously.

I currently do some testing with the suggestions of Hongxu. I reply later.

Cheers,

Marius

>
>
> Andreas
>
>> Let me know if anything isn't clear.
>>
>> Cheers,
>>
>> Marius
>>
>>
>>
>> Andreas Röhler writes:
>>
>>> Am 18.05.2013 15:58, schrieb Marius Hofert:
>>>
>>>>
>>>>
>>> Looks like caused by the question mark after okular
>>>
>>> (("\\.\\(?:pdf\\|djvu\\|jp?g\\)\\'" "okular ? &")
>>
>>




  reply	other threads:[~2013-05-18 18:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-18 10:05 How to suppress/avoid *Async Shell Command* buffer? Marius Hofert
2013-05-18 12:47 ` Andreas Röhler
2013-05-18 13:58   ` Marius Hofert
2013-05-18 14:33     ` Andreas Röhler
2013-05-18 14:37       ` Marius Hofert
2013-05-18 17:13         ` Andreas Röhler
2013-05-18 18:03           ` Marius Hofert [this message]
2013-05-18 18:58             ` Andreas Röhler
     [not found]         ` <mailman.41.1368897044.22516.help-gnu-emacs@gnu.org>
2013-05-18 17:48           ` Barry Margolin
2013-05-18 21:19             ` Marius Hofert
2013-05-18 14:39     ` Hongxu Chen
2013-05-18 18:52       ` Marius Hofert
  -- strict thread matches above, loose matches on Subject: below --
2013-05-18  0:03 Marius Hofert
2013-05-18  8:48 ` Andreas Röhler

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=87sj1kb1wy.fsf@math.ethz.ch \
    --to=marius.hofert@math.ethz.ch \
    --cc=andreas.roehler@easy-emacs.de \
    --cc=help-gnu-emacs@gnu.org \
    /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.