From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jens Persson Newsgroups: gmane.emacs.help Subject: Re: Scroll down *Schell Command Output* buffer when output arrives Date: Tue, 25 Feb 2003 12:59:55 +0100 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3E5B5ABB.5030707@student.uu.se> References: <3E5A3E28.4010901@student.uu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1046174959 891 80.91.224.249 (25 Feb 2003 12:09:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 25 Feb 2003 12:09:19 +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 18ndtd-0000E5-00 for ; Tue, 25 Feb 2003 13:09:18 +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 18ndmC-0007bW-07 for gnu-help-gnu-emacs@m.gmane.org; Tue, 25 Feb 2003 07:01:36 -0500 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3 X-Accept-Language: en-us Original-Newsgroups: gnu.emacs.help Original-NNTP-Posting-Host: regulus2.student.uu.se Original-X-Trace: puffinus.its.uu.se 1046173994 regulus2.student.uu.se (25 Feb 2003 12:53:14 +0100) Original-Lines: 31 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.algonet.se!algonet!news.stupi.se!news.stupi.se!newsfeed.sunet.se!news01.sunet.se!puffinus.its.uu.se Original-Xref: shelby.stanford.edu gnu.emacs.help:110599 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:7101 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7101 Ok, thanks! Guess I should have thought of that ... But is it impossible to (if you just wanted to do it that way for some reason) make the Shell Command Output buffer scroll down automatically every time it gets new output? Benjamin Rutt wrote: > 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) >