From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marius Hofert Newsgroups: gmane.emacs.help Subject: How to suppress/avoid *Async Shell Command* buffer? Date: Sat, 18 May 2013 02:03:21 +0200 Message-ID: <87k3mx2lyu.fsf@math.ethz.ch> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1368835432 26896 80.91.229.3 (18 May 2013 00:03:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 May 2013 00:03:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 18 02:03:52 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UdUcp-0006bv-3Y for geh-help-gnu-emacs@m.gmane.org; Sat, 18 May 2013 02:03:51 +0200 Original-Received: from localhost ([::1]:33749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdUco-00033Z-Hi for geh-help-gnu-emacs@m.gmane.org; Fri, 17 May 2013 20:03:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdUcX-000333-Q6 for help-gnu-emacs@gnu.org; Fri, 17 May 2013 20:03:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UdUcR-0001Qd-Lp for help-gnu-emacs@gnu.org; Fri, 17 May 2013 20:03:33 -0400 Original-Received: from mail-ea0-x236.google.com ([2a00:1450:4013:c01::236]:43518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdUcR-0001QY-G1 for help-gnu-emacs@gnu.org; Fri, 17 May 2013 20:03:27 -0400 Original-Received: by mail-ea0-f182.google.com with SMTP id r16so2761222ead.27 for ; Fri, 17 May 2013 17:03:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:subject:user-agent:date:message-id :mime-version:content-type; bh=Tycki4jJ0j2bDQAcsEVr3/oU7C/HFQvl8YhLBEdf3CY=; b=pMpxOrAgjMStPRcpJfjx8WRpC80ylosW0tEnMz6C3zUwwYzziJT+3IdPmmGf4XumqN dKYBnXCD/94aZC3p1Cr/pfrdRKPbjWjwuqYQK5/NDEnn6xDYOnsXVTxy28LoR/5jbPC9 m5p5V0jJHDKIQBPp27O6bvObBrZt9geujvN62yqHWf35OePavi3Y4GcuUWh4ib3FZe0G II5/oWCZ7wpaoFKUy8w4jt1MpJysEWkWFn9P6cb3CctREWf7aVgxQHULMluJBkWOOqdW vnoYMlexQ4AhF3BC20dyMeAq8pZR+fBHD8BNPniMUZF8qaZ06NjWniW0s+Ecm9pY/n8B G9Nw== X-Received: by 10.15.94.78 with SMTP id ba54mr37337501eeb.36.1368835406214; Fri, 17 May 2013 17:03:26 -0700 (PDT) Original-Received: from sklar (178-83-94-113.dynamic.hispeed.ch. [178.83.94.113]) by mx.google.com with ESMTPSA id w52sm22563191eev.12.2013.05.17.17.03.24 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 17 May 2013 17:03:25 -0700 (PDT) User-agent: mu4e 0.9.9.5; emacs 24.3.50.1 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::236 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90884 Archived-At: 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