From 137ef9b99dec3791878fb9c00d57d3f1b4bbd836 Mon Sep 17 00:00:00 2001 From: ueno Date: Mon, 30 Aug 2004 01:55:58 +0000 Subject: [PATCH] * riece-layout.el (riece-set-window-points): Use (recenter -1) to set window point instead of doing so manually. --- lisp/ChangeLog | 2 ++ lisp/riece-layout.el | 9 +++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 29c1be8..103937b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2004-08-30 Daiki Ueno + * riece-layout.el (riece-set-window-points): Use (recenter -1) to + set window point instead of doing so manually. * riece-misc.el (riece-insert): Use (recenter -1) to set window point instead of doing so manually. diff --git a/lisp/riece-layout.el b/lisp/riece-layout.el index ca463dc..5970983 100644 --- a/lisp/riece-layout.el +++ b/lisp/riece-layout.el @@ -91,18 +91,15 @@ happen unconditionally." (if riece-channel-buffer-window-point (set-window-point (get-buffer-window riece-channel-buffer) riece-channel-buffer-window-point)) - (set-window-point (get-buffer-window riece-channel-buffer) - (point-max))))) + (recenter -1 (get-buffer-window riece-channel-buffer))))) (if (get-buffer-window riece-others-buffer) (with-current-buffer riece-others-buffer (unless (riece-frozen riece-others-buffer) - (set-window-point (get-buffer-window riece-others-buffer) - (point-max))))) + (recenter -1 (get-buffer-window riece-others-buffer))))) (if (get-buffer-window riece-dialogue-buffer) (with-current-buffer riece-dialogue-buffer (unless (riece-frozen riece-dialogue-buffer) - (set-window-point (get-buffer-window riece-dialogue-buffer) - (point-max)))))) + (recenter -1 (get-buffer-window riece-dialogue-buffer)))))) (defun riece-reconfigure-windows-predicate () "Return t, if window reconfiguration is needed. -- 1.7.10.4