all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Reitter <david.reitter@gmail.com>
To: gnu emacs-help gnu <help-gnu-emacs@gnu.org>
Subject: Async Shell Command - automatically scroll to the latest output?
Date: Mon, 13 Oct 2008 17:28:09 -0400	[thread overview]
Message-ID: <FDF630F6-15DA-41BA-9CBF-64D75D5FE1FF@gmail.com> (raw)
In-Reply-To: 5A2F5E3F-7C54-4C4D-9E68-9036690091AF@nf.mpg.de

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 <vollmar@nf.mpg.de>
>
> 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 <david.reitter@gmail.com>
>
> 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.




           reply	other threads:[~2008-10-13 21:28 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <5A2F5E3F-7C54-4C4D-9E68-9036690091AF@nf.mpg.de>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FDF630F6-15DA-41BA-9CBF-64D75D5FE1FF@gmail.com \
    --to=david.reitter@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=vollmar@nf.mpg.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.