all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: E Sabof <evgkeni.sampelnikof@gmail.com>
To: Pete Ley <peteley11235@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Help with async-shell-command
Date: Wed, 05 Feb 2014 01:37:15 +0000	[thread overview]
Message-ID: <87a9e6tk50.fsf@gmail.com> (raw)
In-Reply-To: <87k3da1m04.fsf@enterprise.sectorq.net>

This is the usual way of preserving layout:

(save-window-excursion
  (async-shell-command))

Evgeni

peteley11235@gmail.com writes:

> Hey,
>
> Is there a way to call async-shell-command so that it doesn't open an
> output buffer? I'm trying to write a sync routine that'll get called
> pretty often and I'd like to use async-shell-command, but it always
> opens an annoying *Async Shell Command* buffer, even when there is no
> output.
>
> So far, I've sort of solved the problem by writing a wrapper function
> that calls it and (delete-windows-on "*Async Shell Command*") afterward,
> but this has the side effect of closing a window I was using if the
> window wasn't split for the purpose of the buffer.
>
> Is there a way I can 1) call a shell command asychronously 2) without
> showing *Async Shell Command* and 3) without messing up my window setup?
>
> Thanks
> Pete



  parent reply	other threads:[~2014-02-05  1:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-04 23:44 Help with async-shell-command Pete Ley
2014-02-05  1:17 ` Thorsten Jolitz
2014-02-05  5:00   ` Pete Ley
2014-02-05  1:37 ` E Sabof [this message]
2014-02-05  3:25   ` Stefan Monnier

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=87a9e6tk50.fsf@gmail.com \
    --to=evgkeni.sampelnikof@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=peteley11235@gmail.com \
    /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.