(nnml-open-nov): Don't return dead buffers.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 26 Sep 2010 12:55:39 +0000 (14:55 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 26 Sep 2010 12:55:39 +0000 (14:55 +0200)
lisp/ChangeLog
lisp/nnml.el

index 367efe3..af91f5d 100644 (file)
@@ -1,5 +1,7 @@
 2010-09-26  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * nnml.el (nnml-open-nov): Don't return dead buffers.
+
        * auth-source.el (auth-source-create): Query the user for whether to
        store the credentials.
 
index 42b5321..b84ce51 100644 (file)
@@ -846,7 +846,9 @@ article number.  This function is called narrowed to an article."
     buffer))
 
 (defun nnml-open-nov (group)
-  (or (cdr (assoc group nnml-nov-buffer-alist))
+  (or (let ((buffer (cdr (assoc group nnml-nov-buffer-alist))))
+       (and (buffer-name buffer)
+            buffer))
       (let ((buffer (nnml-get-nov-buffer group)))
        (push (cons group buffer) nnml-nov-buffer-alist)
        buffer)))