[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Automatically scrolling message buffer.

From: Nikolaj Schumacher
Subject: Automatically scrolling message buffer.
Date: Tue, 17 Mar 2009 09:39:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (darwin)

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

Nikolaj Schumacher

reply via email to

[Prev in Thread] Current Thread [Next in Thread]