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: Scroll down *Schell Command Output* buffer when output arrives Date: Mon, 24 Feb 2003 16:45:44 +0100 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <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 1046101691 11545 80.91.224.249 (24 Feb 2003 15:48:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 24 Feb 2003 15:48:11 +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 18nKpq-0002zg-00 for ; Mon, 24 Feb 2003 16:48:06 +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 18nKnQ-0006La-0D for gnu-help-gnu-emacs@m.gmane.org; Mon, 24 Feb 2003 10:45: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 1046101161 regulus2.student.uu.se (24 Feb 2003 16:39:21 +0100) Original-Lines: 24 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news.net.uni-c.dk!newsfeed.sunet.se!news01.sunet.se!puffinus.its.uu.se Original-Xref: shelby.stanford.edu gnu.emacs.help:110568 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:7070 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7070 Hi! I have made a couple of functions that performs single shell-command calls, for example like this: (defun csound-compile-curr-osc-sco () (interactive) (shell-command (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) 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? (I've searched the internet for hours and I'm getting frustrated here!) /Jens