From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: how to set shell output always to *Shell Command Output* Date: Fri, 17 Sep 2010 12:25:51 -0700 (PDT) Organization: http://groups.google.com Message-ID: <609e0423-e23b-4e05-9f48-0b0610d9b74f@k17g2000prf.googlegroups.com> References: <782e1056-089a-4284-ad9e-03396e25034a@m17g2000prl.googlegroups.com> <574baa7f-7b70-4ebf-aaaa-42b6400b29a4@p37g2000pra.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 1291870061 12205 80.91.229.12 (9 Dec 2010 04:47:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 04:47:41 +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 05:47:37 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 1PQYPj-0001GQ-Ql for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 05:47:31 +0100 Original-Received: from localhost ([127.0.0.1]:50922 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQYPj-0003wU-6E for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 23:47:31 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!k17g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: 67.180.85.8 Original-X-Trace: posting.google.com 1284751551 5049 127.0.0.1 (17 Sep 2010 19:25:51 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 17 Sep 2010 19:25:51 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k17g2000prf.googlegroups.com; posting-host=67.180.85.8; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.59 Safari/534.3, gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:181357 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:76676 Archived-At: On Sep 17, 11:56=A0am, TheFlyingDutchman wrote: > > humm... doesn't seems a satisfying solution. Just read the doc: > > > Otherwise, COMMAND is executed synchronously. =A0The output appears in > > the buffer `*Shell Command Output*'. =A0If the output is short enough t= o > > display in the echo area (which is determined by the variables > > `resize-mini-windows' and `max-mini-window-height'), it is shown > > there, but it is nonetheless available in buffer `*Shell Command > > Output*' even though that buffer is not automatically displayed. > > > so the output is always in =93*Shell Command Output*=94, the trick is t= o > > always switch to it, and with the default behavior of spliting window > > to show it. Seems hard to do that... > > For me, on Emacs 23.2.1, when I have resize-mini-windows set to nil, > any shell-command that creates output of two lines or more, not only > displays in the *Shell Command Output* buffer, it also splits the > screen and displays *Shell Command Output* buffer if it is not already > displayed. but what if i do want the mini-buffer window to resize? i vaguely recall i set it before but then when calling shell-command with long shell lines it becomes one loong line that goes out of the window. it seems to me the current behavior is trying to use one stone for 2 birds... not orthogonal. would be nice if emacs has anoher var some like smart-redirect-output- p. Xah