all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: How to suppress/avoid *Async Shell Command* buffer?
@ 2013-05-18 10:05 Marius Hofert
  2013-05-18 12:47 ` Andreas Röhler
  0 siblings, 1 reply; 14+ messages in thread
From: Marius Hofert @ 2013-05-18 10:05 UTC (permalink / raw)
  To: andreas.roehler; +Cc: help-gnu-emacs

Hi Andreas,

Thanks a lot for helping.

The purpose is simply for opening them (asynchronously), viewing the pdf
(continuing to work in Emacs), (maybe add annotations to the pdf and save
it).

I use 'dired-mode' as 'file manager' and often would like to open and view
pdfs in Okular. I also have other 'dired-guess-shell-alist-user' settings
like opening pngs in eog or mp3s in VLC. But everytime I open a file, I get
this annoying *Async Shell Command* buffer (either empty or with debug
output) and I have to manually close it via C-x 0 etc. to get rid of it. I
know that it might contain useful information sometimes and I wouldn't be
against it appearing hidden (in the buffer list). But being distracted by
this buffer in dired-mode is really unpleasant. If I only knew more emacs
lisp...

Cheers,

Marius


^ permalink raw reply	[flat|nested] 14+ messages in thread
* How to suppress/avoid *Async Shell Command* buffer?
@ 2013-05-18  0:03 Marius Hofert
  2013-05-18  8:48 ` Andreas Röhler
  0 siblings, 1 reply; 14+ messages in thread
From: Marius Hofert @ 2013-05-18  0:03 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I use

--8<---------------cut here---------------start------------->8---
(setq dired-guess-shell-alist-user
      '(("\\.\\(?:pdf\\|djvu\\|jp?g\\)\\'" "okular ? &")
        ("\\.html\\'" "google-chrome ? &")))
--8<---------------cut here---------------end--------------->8---

to open pdf files in dired-mode via "!". Once I do this, my dired buffer
is vertically divided into two pieces by opening a buffer named
*Async Shell Command*. The buffer does not show anything. It is quite
useless and *very* tedious to close (not only for pdf files). How can I
suppress this buffer / avoid this buffer being opened?

Here is what I found on this topic:
1)
http://stackoverflow.com/questions/3679930/how-to-automatically-remove-or-prevent-popping-up-async-shell-command-in-ema
2)
http://stackoverflow.com/questions/6915314/emacs-automatically-close-async-output-buffers-on-command-completion3)
http://stackoverflow.com/questions/12083228/how-do-i-speed-up-emacs-output-from-an-asynchronous-shell-command
4) http://stackoverflow.com/questions/13348230/create-buffer-and-immediately-hide-it
5) http://stackoverflow.com/questions/7298372/run-a-program-from-emacs-and-dont-wait-for-output
6) https://groups.google.com/forum/?fromgroups#!topic/gnu.emacs.help/TNqE7R7mULk

1), 2), 3): idea with save-window-excursion
4), 5): idea with start-process
6): call-process-shell-command

The problem is that I don't know how to *use* (one of) these approaches,
especially not with dired-mode's "!". Ideally, the buffer *Async Shell
Command* is not opened at all or at least is opened in the background
but does not 'destroy' (take up space from) the current buffer.

Cheers,

Marius



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

end of thread, other threads:[~2013-05-18 21:19 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.