* riece-misc.el (riece-insert): Use (recenter -1) to set window
authorDaiki Ueno <ueno@unixuser.org>
Mon, 30 Aug 2004 01:54:21 +0000 (01:54 +0000)
committerDaiki Ueno <ueno@unixuser.org>
Mon, 30 Aug 2004 01:54:21 +0000 (01:54 +0000)
point instead of doing so manually.

lisp/ChangeLog
lisp/riece-misc.el

index 80f6911..29c1be8 100644 (file)
@@ -1,3 +1,8 @@
+2004-08-30  Daiki Ueno  <ueno@unixuser.org>
+
+       * riece-misc.el (riece-insert): Use (recenter -1) to set window
+       point instead of doing so manually.
+
 2004-08-28  Daiki Ueno  <ueno@unixuser.org>
 
        * riece-xemacs.el (riece-put-text-property-nonsticky): New function.
index 52c44a5..543549f 100644 (file)
@@ -73,8 +73,7 @@
        (insert (format-time-string "%H:%M") " " string)
        (if (and (not (riece-frozen (current-buffer)))
                 (get-buffer-window (current-buffer)))
-           (set-window-point (get-buffer-window (current-buffer))
-                             (point)))
+           (recenter -1 (get-buffer-window (current-buffer))))
        (run-hook-with-args 'riece-after-insert-functions start (point))))
     (setq buffers (cdr buffers))))