unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Silent (shell-command)
@ 2012-08-31 23:10 Marcelo de Moraes Serpa
  2012-08-31 23:23 ` Christopher Schmidt
  0 siblings, 1 reply; 2+ messages in thread
From: Marcelo de Moraes Serpa @ 2012-08-31 23:10 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 332 bytes --]

Hi list,

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?

Thanks in advance,

- Marcelo.

[-- Attachment #2: Type: text/html, Size: 443 bytes --]

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

* Re: Silent (shell-command)
  2012-08-31 23:10 Silent (shell-command) Marcelo de Moraes Serpa
@ 2012-08-31 23:23 ` Christopher Schmidt
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher Schmidt @ 2012-08-31 23:23 UTC (permalink / raw)
  To: help-gnu-emacs

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



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

end of thread, other threads:[~2012-08-31 23:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-31 23:10 Silent (shell-command) Marcelo de Moraes Serpa
2012-08-31 23:23 ` Christopher Schmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).