help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Async Shell Command - automatically scroll to the latest output?


From: David Reitter
Subject: Async Shell Command - automatically scroll to the latest output?
Date: Mon, 13 Oct 2008 17:28:09 -0400

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 via email to

[Prev in Thread] Current Thread [Next in Thread]