* riece.el (riece): Remove nonexistent buffer from
authorueno <ueno>
Sun, 21 Nov 2004 00:22:50 +0000 (00:22 +0000)
committerueno <ueno>
Sun, 21 Nov 2004 00:22:50 +0000 (00:22 +0000)
riece-buffer-list when running riece-shrink-buffer.

lisp/ChangeLog
lisp/riece.el

index 8fb4c3a..e34a940 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-21  Daiki Ueno  <ueno@unixuser.org>
+
+       * riece.el (riece): Remove nonexistent buffer from
+       riece-buffer-list when running riece-shrink-buffer.
+
 2004-11-20  Daiki Ueno  <ueno@unixuser.org>
 
        * riece-display.el (riece-update-buffers): Check existence of each
index 1d49190..51e2d59 100644 (file)
@@ -294,12 +294,13 @@ If optional argument CONFIRM is non-nil, ask which IRC server to connect."
               (lambda ()
                 (let ((buffers riece-buffer-list))
                   (while buffers
-                    (if (and (buffer-live-p (car buffers))
-                             (eq (derived-mode-class
-                                  (with-current-buffer (car buffers)
-                                    major-mode))
-                                 'riece-dialogue-mode))
-                        (riece-shrink-buffer (car buffers)))
+                    (if (buffer-live-p (car buffers))
+                        (if (eq (derived-mode-class
+                                 (with-current-buffer (car buffers)
+                                   major-mode))
+                                'riece-dialogue-mode)
+                            (riece-shrink-buffer (car buffers)))
+                      (deql (car buffers) riece-buffer-list))
                     (setq buffers (cdr buffers))))))))
     (switch-to-buffer riece-command-buffer)
     (riece-display-connect-signals)