From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: TheFlyingDutchman Newsgroups: gmane.emacs.help Subject: Re: how to set shell output always to *Shell Command Output* Date: Thu, 16 Sep 2010 06:00:42 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <782e1056-089a-4284-ad9e-03396e25034a@m17g2000prl.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291867118 2190 80.91.229.12 (9 Dec 2010 03:58:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 03:58:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 04:58:34 2010 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.69) (envelope-from ) id 1PQXeM-0008Dz-CD for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 04:58:34 +0100 Original-Received: from localhost ([127.0.0.1]:43765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQXeL-0002ne-Qp for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 22:58:33 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!w15g2000pro.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: 75.36.154.13 Original-X-Trace: posting.google.com 1284642043 9488 127.0.0.1 (16 Sep 2010 13:00:43 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 16 Sep 2010 13:00:43 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w15g2000pro.googlegroups.com; posting-host=75.36.154.13; posting-account=9bWHAAoAAAAxSFC_2O_ssTETNW9NhMbW User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.5; (R1 1.6); SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; AskTbBT5/5.8.0.12304),gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:181335 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:76598 Archived-At: On Sep 12, 11:17=A0pm, Xah Lee wrote: > when running a shell command, if the output is small, it shows in the > =93*Messages*=94 buffer. > > is there a way to always have the output in the =93*Shell Command > Output*=94 buffer? > > thanks. > > =A0Xah Hello, This is in reply to a message I lost track of in Gnus. To always send a command output to a specified buffer. (defun shell-command-with-buffer(cmd) (interactive "sCommand:") (shell-command cmd (set-buffer (get-buffer-create "*Shell Command Output*")) nil)) Thanks. mp -- Michael Powe mich...@trollope.org Naugatuck CT USA