Revert "Fix toggle-freeze behavior when the channel buffer window is selected."
authorDaiki Ueno <ueno@unixuser.org>
Tue, 14 Dec 2010 09:05:22 +0000 (18:05 +0900)
committerDaiki Ueno <ueno@unixuser.org>
Tue, 14 Dec 2010 09:05:22 +0000 (18:05 +0900)
This reverts commit fd183f0668247cad752130c1ca1d3d6ac3bb6bc4.

lisp/ChangeLog
lisp/riece-misc.el

index 82b8e2c..787c608 100644 (file)
@@ -1,8 +1,3 @@
-2010-12-14  Daiki Ueno  <ueno@unixuser.org>
-
-       * riece-misc.el (riece-insert): Make sure to save current point,
-       when the currently selected buffer is frozen.
-
 2010-12-11  TAKAHASHI Kaoru  <kaoru@kaisei.org>
 
        * COMPILE (riece-update-mcat): Fix "Wrong number of arguments"
 2010-12-11  TAKAHASHI Kaoru  <kaoru@kaisei.org>
 
        * COMPILE (riece-update-mcat): Fix "Wrong number of arguments"
index 8995ccb..2aa1286 100644 (file)
     (with-current-buffer (car buffers)
       (let ((inhibit-read-only t)
            buffer-read-only
     (with-current-buffer (car buffers)
       (let ((inhibit-read-only t)
            buffer-read-only
-           start
+           (start (goto-char (point-max)))
            window
            point)
            window
            point)
-       ;; Save the current for the case when (car buffers) is the
-       ;; currently selected buffer.
-       (save-excursion
-         (setq start (goto-char (point-max)))
-         (insert (format-time-string "%H:%M") " " string)
-         (setq point (point)))
+       (insert (format-time-string "%H:%M") " " string)
+       (setq point (point))
        (if (and (not (riece-frozen (current-buffer)))
                 (setq window (get-buffer-window (current-buffer)))
                 (not (pos-visible-in-window-p point window)))
        (if (and (not (riece-frozen (current-buffer)))
                 (setq window (get-buffer-window (current-buffer)))
                 (not (pos-visible-in-window-p point window)))