From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dnquark Newsgroups: gmane.emacs.help Subject: Re: Programatically suppress "Async Shell command" buffer Date: Thu, 9 Jul 2009 20:30:57 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2e8f281a-216c-4b92-8cc0-b2931541b015@h11g2000yqb.googlegroups.com> References: <24355670.post@talk.nabble.com> <2702DED8-7711-42E2-949C-440239CAFB09@Web.DE> <36fa957b-7ba4-4b94-be8c-1ec19822d59c@h31g2000yqd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1247198484 13819 80.91.229.12 (10 Jul 2009 04:01:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Jul 2009 04:01:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 10 06:01:17 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MP7IR-0001pi-Ko for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Jul 2009 06:01:15 +0200 Original-Received: from localhost ([127.0.0.1]:43101 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MP7IR-00045R-7T for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Jul 2009 00:01:15 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!h11g2000yqb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-NNTP-Posting-Host: 98.223.64.197 Original-X-Trace: posting.google.com 1247196657 3476 127.0.0.1 (10 Jul 2009 03:30:57 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 10 Jul 2009 03:30:57 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h11g2000yqb.googlegroups.com; posting-host=98.223.64.197; posting-account=nQKzDwoAAADiNnsVsJOw54VLeNKCeQkD User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:170719 X-Mailman-Approved-At: Thu, 09 Jul 2009 23:57:54 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65918 Archived-At: To add: I can redirect the command output to /dev/dull, but the problem is that I cannot run the command in a dired buffer since it is read-only. Is there a way to specify that the command produces no output so that it could be possible to run in a read-only buffer,e.g. dired? On Jul 9, 10:17=A0pm, dnquark wrote: > I was just trying to figure out how to get this to work; this helped > but there still is a problem: once the asyncshellcommand terminates, > whatever output it produces (I think it's on stderr) which would > normally go to the dedicated output buffer gets inserted into my > current buffer. =A0How do I suppress all output from the command?.. > > On Jul 7, 2:00=A0pm, gearheart wrote: > > > Peter Dyballa wrote: > > > > Am 06.07.2009 um 15:43 schrieb gearheart: > > > >> When asyncshell-commandis run, i get empty buffer that takes like = =A0 > > >> half of > > >> the screen. > > > > Half of the frame in whichshell-commandwas run is standard =A0 > > > behaviour (could be an option exists to set size as for example for = =A0 > > > the *compilation* buffer, compilation-window-height). If yourshell=A0 > > >commanddoes return nothing or white space, then the temporary *Shell= =A0 > > >CommandOutput* buffer will look empty (in the fringe you can have =A0 > > > exact indicators). If yourshellcommand, say, a simple ls, should =A0 > > > return readableoutputand you get an empty *ShellCommandOutput* =A0 > > > buffer, then something is faulty. Then try the same by launching GNU = =A0 > > > Emacs as 'emacs -Q' without any customisation. > > > oops, my bad. > > to call asyncshellcommandwithout a buffer you need to run: > > (shell-command"something&" (universal-argument)) > > -- > > View this message in context:http://www.nabble.com/Programatically-supp= ress-%22Async-Shell-command... > > Sent from the Emacs - Help mailing list archive at Nabble.com.