From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Automatically scrolling message buffer. Date: Tue, 17 Mar 2009 09:39:11 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1237279197 12852 80.91.229.12 (17 Mar 2009 08:39:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Mar 2009 08:39:57 +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 Mar 17 09:41:13 2009 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 1LjUrD-0002Fm-Sv for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Mar 2009 09:41:08 +0100 Original-Received: from localhost ([127.0.0.1]:48633 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjUpr-0002PT-AC for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Mar 2009 04:39:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LjUpU-0002PN-1O for help-gnu-emacs@gnu.org; Tue, 17 Mar 2009 04:39:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LjUpT-0002PA-4r for help-gnu-emacs@gnu.org; Tue, 17 Mar 2009 04:39:19 -0400 Original-Received: from [199.232.76.173] (port=47628 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjUpS-0002P7-W3 for help-gnu-emacs@gnu.org; Tue, 17 Mar 2009 04:39:19 -0400 Original-Received: from dd18200.kasserver.com ([85.13.138.168]:37400) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LjUpS-0001Wl-KE for help-gnu-emacs@gnu.org; Tue, 17 Mar 2009 04:39:18 -0400 Original-Received: from thursday (f051034155.adsl.alicedsl.de [78.51.34.155]) by dd18200.kasserver.com (Postfix) with ESMTP id EB1A61807905A for ; Tue, 17 Mar 2009 09:39:13 +0100 (CET) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (darwin) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:63000 Archived-At: 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.) regards, Nikolaj Schumacher