all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Giorgos Keramidas <keramida@ceid.upatras.gr>
To: help-gnu-emacs@gnu.org
Subject: Re: Automatically scrolling message buffer.
Date: Tue, 17 Mar 2009 10:58:49 +0200	[thread overview]
Message-ID: <87d4cgle46.fsf@kobe.laptop> (raw)
In-Reply-To: mailman.3384.1237279162.31690.help-gnu-emacs@gnu.org

On Tue, 17 Mar 2009 09:39:11 +0100, Nikolaj Schumacher <me@nschum.de> wrote:
> Hi everyone,
>
> does anyone know a way to keep the *Messages* buffer displaying the end
> of the buffer?
>
> Currently, I do:
>
> (defun scroll-messages ()
>   (let ((window (get-buffer-window "*Messages*")))
>     (and window
>          (not (equal window (selected-window)))
>          (with-selected-window window
>            (set-window-point nil (point-max))
>            (recenter -1)))))
>
> (run-with-timer .2 .2 'scroll-messages)
>
> Any cleaner solutions?  (Unfortunately, buffer modification hooks don't
> seem to be called.)

This might start becoming *very* annoying if you really want to scroll
upwards through a large *Messages* buffer.  A slightly less intrusive
way to do something similar would be to add a hook that fires up every
time you switch _to_ the *Messages* buffer.  This way every time you
switch away from the buffer and back to it, it scrolls down to the last
message, but if you move around while the buffer is active it doesn't
keep annoying you by jumping to the end of the buffer all the time.



       reply	other threads:[~2009-03-17  8:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3384.1237279162.31690.help-gnu-emacs@gnu.org>
2009-03-17  8:58 ` Giorgos Keramidas [this message]
2009-03-17 11:32   ` Automatically scrolling message buffer Nikolaj Schumacher
     [not found]   ` <mailman.3400.1237289527.31690.help-gnu-emacs@gnu.org>
2009-03-17 14:33     ` Giorgos Keramidas
2009-03-17 20:49       ` Bernardo
     [not found]       ` <mailman.3434.1237323087.31690.help-gnu-emacs@gnu.org>
2009-03-17 21:31         ` Giorgos Keramidas
2009-03-17  8:39 Nikolaj Schumacher
2009-03-17  9:36 ` Peter Dyballa
2009-03-17 11:23   ` Nikolaj Schumacher

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=87d4cgle46.fsf@kobe.laptop \
    --to=keramida@ceid.upatras.gr \
    --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.