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

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

Re: Scroll down *Schell Command Output* buffer when output arrives


From: Benjamin Rutt
Subject: Re: Scroll down *Schell Command Output* buffer when output arrives
Date: Mon, 24 Feb 2003 11:37:50 -0500
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (sparc-sun-solaris2.8)

Jens Persson <jens.persson.1833@student.uu.se> writes:

> The ouput of these shell-command calls goes into the *Shell Command
> Output* buffer, and now I only want it to automatically scroll down
> every time new output arrives to it so that the last lines of the
> output is visable, how can i do this? Is there some hook that i can
> add a "end-of-buffer" to or something?

Why not run them under `compile', which will do the scrolling for you
automatically.

e.g.

(defun csound-compile-curr-osc-sco ()
   (interactive)
   (compile (concat "csound -A -d -o test.aif "
    (file-name-sans-extension (buffer-name)) ".orc "
    (file-name-sans-extension (buffer-name)) ".sco")))

(global-set-key [f8] 'csound-compile-curr-osc-sco)
-- 
Benjamin


reply via email to

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