From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.help Subject: Async Shell Command - automatically scroll to the latest output? Date: Mon, 13 Oct 2008 17:28:09 -0400 Message-ID: References: <5A2F5E3F-7C54-4C4D-9E68-9036690091AF@nf.mpg.de> Reply-To: Stefan Vollmar , David Reitter , gnu emacs-help gnu NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1223933904 27995 80.91.229.12 (13 Oct 2008 21:38:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Oct 2008 21:38:24 +0000 (UTC) To: gnu emacs-help gnu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 13 23:39:23 2008 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 1KpV8C-0003ul-SE for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Oct 2008 23:39:13 +0200 Original-Received: from localhost ([127.0.0.1]:50521 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KpV78-0006Ur-DD for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Oct 2008 17:38:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KpUxh-0005I8-9B for help-gnu-emacs@gnu.org; Mon, 13 Oct 2008 17:28:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KpUxd-0005Dq-Di for help-gnu-emacs@gnu.org; Mon, 13 Oct 2008 17:28:20 -0400 Original-Received: from [199.232.76.173] (port=36823 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KpUxd-0005Db-4R for help-gnu-emacs@gnu.org; Mon, 13 Oct 2008 17:28:17 -0400 Original-Received: from wx-out-0506.google.com ([66.249.82.238]:54263) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KpUxb-0008IJ-1r for help-gnu-emacs@gnu.org; Mon, 13 Oct 2008 17:28:15 -0400 Original-Received: by wx-out-0506.google.com with SMTP id s15so659234wxc.24 for ; Mon, 13 Oct 2008 14:28:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :content-type:content-transfer-encoding:reply-to:subject :mime-version:date:references:x-mailer; bh=ydp66w9fU+DoXBpbbQ24fi52+oCkI3Plzylwv6vCjvs=; b=NbZMaTa5t5UODb2s4CmkFAIrIfOKdaUmCJU6p+FklIw0VaOZDsMbFNHBJlD8zU/vR7 jLpi4Ed02YfzKX5Aodz7MmCwCfLSD4GjHiZlS9adolIpssTZzAkQduiTwuCQUAjf8DdM s5fBUJQtWaEamrJeVHayeFyRRhvNqQFJThh+4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:content-type:content-transfer-encoding :reply-to:subject:mime-version:date:references:x-mailer; b=dcjUmPw6oE1CChPZuFgl16Hg95AQxSXOyGvLd4FJC6v1NzfpI1koYiJvErWszd92rc KL+Ql71ngupMZunnEhNGaq3oU1DKgcphXkyb4SDdrZ0q8r/6tBQ+/Ch/3nsO+i6BfFdI fSnztZ3eujxQ9ZEis0UZryfQt8wGfeyRMSFKo= Original-Received: by 10.100.163.8 with SMTP id l8mr6550182ane.7.1223933292280; Mon, 13 Oct 2008 14:28:12 -0700 (PDT) Original-Received: from SCARLETT.PSY.CMU.EDU (SCARLETT.PSY.CMU.EDU [128.2.249.106]) by mx.google.com with ESMTPS id c13sm18327114anc.32.2008.10.13.14.28.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 13 Oct 2008 14:28:11 -0700 (PDT) X-Mailer: Apple Mail (2.929.2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:58745 Archived-At: We've had some issues with a buffer created by `shell-command': how does one automatically keep the point at the end of the output, i.e. the window scrolled all the way to the end of the buffer? In more detail, including various things I've tried: > From: Stefan Vollmar > > One small thing: we are starting our compiled programs from within > Aquamacs with > (shell-command "./mybin &") to capture the output in the "*Async > Shell Command*" buffer. This is very useful and generally works > well. However, the buffer with the program's output always ends up > in a way that requires to scroll back manually to see the last lines > of output. Can we configure Aquamacs to not scroll beyond the last > line of captured output? Many thanks in advance. Begin forwarded message: > From: David Reitter > > Tricky one. I would have thought that > > (setq scroll-up-aggressively 0.0) > > should do the trick, but it doesn't. > > Inspection of the `shell-command' code shows me that it's a buffer > in shell-mode, which uses comint. So: > > (setq comint-scroll-show-maximum-output t) > > This is documented as "Non-nil means scroll so that the window is > full of text and point is on the last line. " > > Now, unfortunately this doesn't work for me either, so right now I'm > at a loss.