From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Benjamin Rutt Newsgroups: gmane.emacs.help Subject: Re: Scroll down *Schell Command Output* buffer when output arrives Date: Mon, 24 Feb 2003 11:37:50 -0500 Organization: The Ohio State University Dept. of Computer and Info. Science Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3E5A3E28.4010901@student.uu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1046105011 29134 80.91.224.249 (24 Feb 2003 16:43:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 24 Feb 2003 16:43:31 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18nLgR-0007V9-00 for ; Mon, 24 Feb 2003 17:42:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18nLfs-0002qV-08 for gnu-help-gnu-emacs@m.gmane.org; Mon, 24 Feb 2003 11:41:52 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.ems.psu.edu!news.cis.ohio-state.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: gamma.cis.ohio-state.edu Mail-Copies-To: nobody X-Face: (&zE&hBC"G~kYNV6dt5#[X'%{!h5@/oUyc`CRNn#d6e2qi%~4N.?_ys_bQ3&7.* List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7074 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7074 Jens Persson 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