all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Schmidt <christopher@ch.ristopher.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Silent (shell-command)
Date: Sat,  1 Sep 2012 00:23:57 +0100 (BST)	[thread overview]
Message-ID: <873932wsqp@ch.ristopher.com> (raw)
In-Reply-To: <CACHMzOFoiDc=55pxxZYpeFEuWHtvxRmjRVXfAB3EbFHtewU6pQ@mail.gmail.com> (Marcelo de Moraes Serpa's message of "Fri, 31 Aug 2012 18:10:38 -0500")

Marcelo de Moraes Serpa <celoserpa@gmail.com> writes:
> Is there a way to run a shell-command without emacs creating any kind
> of output buffer when it's completed? I've tried using "&" but the
> buffer just changes to "Async Output Buffer". I'd just like emacs to
> silently run the command in the background, preferably without
> blocking. Any ideas?

    (global-set-key [remap shell-command]
                    (lambda ()
                      (interactive)
                      (let ((display-buffer-overriding-action (cons (lambda (_1 _2) 'rms) nil)))

                        (call-interactively 'shell-command))))

        Christopher



      reply	other threads:[~2012-08-31 23:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-31 23:10 Silent (shell-command) Marcelo de Moraes Serpa
2012-08-31 23:23 ` Christopher Schmidt [this message]

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=873932wsqp@ch.ristopher.com \
    --to=christopher@ch.ristopher.com \
    --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.