From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Will Parsons Newsgroups: gmane.emacs.help Subject: Re: Scroll output in compilation mode Date: 2 Apr 2007 21:46:04 GMT Message-ID: <57dbssF2d0kckU1@mid.individual.net> References: <1175523648.483010.14420@q75g2000hsh.googlegroups.com> Reply-To: ellenophilos@yahoo.com NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1175553442 4359 80.91.229.12 (2 Apr 2007 22:37:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2007 22:37:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 03 00:37:20 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HYV9J-00083v-Pj for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Apr 2007 00:37:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HYVCO-0000qk-7k for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Apr 2007 18:40:28 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-X-Trace: individual.net maece9HSmCQyiK3reoVMFwN1uWHDBKDexls/OW7/JuaMPtHOoY User-Agent: slrn/0.9.8.1 (Debian) Original-Xref: shelby.stanford.edu gnu.emacs.help:146773 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42377 Archived-At: danjhiggi3@gmail.com wrote: > I've spend about 8 hours trying to track this down. > > I would like to the compilation buffer output to scroll even when my > cursor is not in it. > I have seen all of the recommendations to enter use the following... > > (setq compilation-scroll-output t) > > But this doesn't work as I had hoped. > > Again, > I would like to have my cursor in the code, > use the compile command, > The window will spit > my cursor stays in the code window > the compilation window will scroll as it goes along. > > I KNOW this can be done. I had it set up this way years ago and I > can't remember how I did it. I picked this up from someplace a long time ago and have been carrying it around in my .emacs file ever since (but setting compilation-scroll-output works for me too): (eval-after-load "compile" '(defadvice compile-internal (after compile-my-scroll activate compile) "Forces compile buffer to scroll. See around line 363 in compile.el" (let* ((ob (current-buffer))) (save-excursion (select-window (get-buffer-window ad-return-value)) (goto-char (point-max)) (select-window (get-buffer-window ob)) ))))