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: Re: How to suppress/avoid *Async Shell Command* buffer? Date: Sat, 18 May 2013 15:58:33 +0200 Message-ID: <87sj1ktmnq.fsf@math.ethz.ch> References: <5197784A.1020500@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1368885549 9611 80.91.229.3 (18 May 2013 13:59:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 May 2013 13:59:09 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?utf-8?Q?Andreas_R=C3=B6hler?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 18 15:59:07 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 1Udhf3-0007np-Vc for geh-help-gnu-emacs@m.gmane.org; Sat, 18 May 2013 15:59:02 +0200 Original-Received: from localhost ([::1]:39600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Udhf3-00087C-D7 for geh-help-gnu-emacs@m.gmane.org; Sat, 18 May 2013 09:59:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Udhel-00086r-If for help-gnu-emacs@gnu.org; Sat, 18 May 2013 09:58:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Udhef-0001zd-Bq for help-gnu-emacs@gnu.org; Sat, 18 May 2013 09:58:43 -0400 Original-Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:45933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Udhef-0001zY-64 for help-gnu-emacs@gnu.org; Sat, 18 May 2013 09:58:37 -0400 Original-Received: by mail-wi0-f169.google.com with SMTP id hn14so1339567wib.0 for ; Sat, 18 May 2013 06:58:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:references:user-agent :in-reply-to:date:message-id:mime-version:content-type :content-transfer-encoding; bh=qxXkVqXb3FMLKuCIVC5e6+TRUKKMa04/Tmqk8KtSS60=; b=m76WmdD7tmpV9D+PjlhO0DTn/2s2eRb7ipzAaXuTUGq3pHxhb0udK6PBarw/91qBXR gAG9p3XDnHH6wXwpgPDoCuusV9y2OJsTQboEBHr7xKeOQ/ORxx5UsaNXyEYsFsNZGztq flmMJhdCLRXV7wAn/QbTnvKXO14/HlPCBhvXvJ0yiCgCCaMybfKYGnQ8/h9EYH7gxGkJ B+7jTC1PpCKnAuNvBZ+M/uzgSPykKzH76oFjFGImUN7Aq2vzmTPgUh16cgung0C4lijj eHEj0Xpx9mSSZexwgcTbKJ2t4C2MZGQSUoLQ713L9lhGyDqHxnlE7Pod11iPt1VY2g8h HQGA== X-Received: by 10.194.173.130 with SMTP id bk2mr5794116wjc.46.1368885516368; Sat, 18 May 2013 06:58:36 -0700 (PDT) Original-Received: from sklar (v-route-730.math.ethz.ch. [129.132.147.99]) by mx.google.com with ESMTPSA id x13sm2925569wib.3.2013.05.18.06.58.34 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 18 May 2013 06:58:35 -0700 (PDT) User-agent: mu4e 0.9.9.5; emacs 24.3.50.1 In-reply-to: <5197784A.1020500@easy-emacs.de> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::229 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:90893 Archived-At: Andreas Röhler writes: > Am 18.05.2013 12:05, schrieb Marius Hofert: >> Hi Andreas, >> >> Thanks a lot for helping. >> >> The purpose is simply for opening them (asynchronously), viewing the pdf > > Hmm, probably don't understand yet, what is the difference WRT RET --dired-find-file-- ? dired-find-file opens it *in Emacs*. I can't edit it then and it's also a bit slow. I would like to open the file with *Okular* from Emacs. > >> (continuing to work in Emacs), (maybe add annotations to the pdf and save >> it). >> > > which would mean edit, not just view the pdf(?) yes. Maybe I wasn't clear. You can use "!" in dired mode to execute commands on the file at point. I use that to call Okular to open the file (in Okular; standalone). The same happens when I cd in the terminal to the directory containing the pdf file, then type 'okular foo.pdf &', but that's more tedious of course (also, it exits Okular if I quit the terminal -- which does not happen if I start it from dired-mode). > > > >> 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. > > > Please give an example of the shell-command used than. Due to my settings for dired-guess-shell-alist-user (as posted), I receive the suggestion 'okular ? &' when hitting '!' with the point on the pdf file. This executes "okular foo.pdf &" in the background (as far as I know), where 'foo.pdf' is the pdf file at point. Hitting RET starts Okular, opens foo.pdf (great), but also opens the *Async Shell Command* buffer in Emacs (as described; not so great). Cheers, Marius > > 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... >> > > > Let's see how it comes out in this case. > > Andreas > >> Cheers, >> >> Marius >>