all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Will Parsons <oudeis@nodomain.invalid>
To: help-gnu-emacs@gnu.org
Subject: Re: Scroll output in compilation mode
Date: 2 Apr 2007 21:46:04 GMT	[thread overview]
Message-ID: <57dbssF2d0kckU1@mid.individual.net> (raw)
In-Reply-To: 1175523648.483010.14420@q75g2000hsh.googlegroups.com

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))
         ))))

  parent reply	other threads:[~2007-04-02 21:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-02 14:20 Scroll output in compilation mode danjhiggi3
2007-04-02 14:44 ` Daniel Rubin
2007-04-02 21:46 ` Will Parsons [this message]
2007-04-03 17:50   ` danjhiggi3
2007-04-03 10:48 ` Jhair Tocancipa Triana
2007-04-03 11:45   ` Daniel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=57dbssF2d0kckU1@mid.individual.net \
    --to=oudeis@nodomain.invalid \
    --cc=ellenophilos@yahoo.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.