]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-sum.el (gnus-summary-exit): Make sure to kill article buffer in ephemeral group.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 31 May 2011 10:37:35 +0000 (10:37 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 31 May 2011 10:37:35 +0000 (10:37 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-sum.el

index dcbc647950f744202b0ff0d8b0d42ea5a6fce3b1..a40dee2d20af543af25220f2eb43a877163e6a39 100644 (file)
@@ -1,3 +1,8 @@
+2011-05-31  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-sum.el (gnus-summary-exit): Make sure to kill article buffer in
+       ephemeral group.
+
 2011-05-30  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-group.el (gnus-group-mark-article-read): It's possible that we
index 2d75c35158a93d92a8c8b3480ce4eeb6b4baba4a..1c4382b24a615e8e944fdfe064001229d5088e09 100644 (file)
@@ -7194,7 +7194,11 @@ If FORCE (the prefix), also save the .newsrc file(s)."
         (article-buffer gnus-article-buffer)
         (mode major-mode)
         (group-point nil)
-        (buf (current-buffer)))
+        (buf (current-buffer))
+        ;; `gnus-single-article-buffer' is nil buffer-locally in
+        ;; ephemeral group of which summary buffer will be killed,
+        ;; but the global value may be non-nil.
+        (single-article-buffer gnus-single-article-buffer))
     (unless quit-config
       ;; Do adaptive scoring, and possibly save score files.
       (when gnus-newsgroup-adaptive
@@ -7257,7 +7261,7 @@ If FORCE (the prefix), also save the .newsrc file(s)."
          (gnus-configure-windows 'group 'force)))
 
       ;; If we have several article buffers, we kill them at exit.
-      (unless gnus-single-article-buffer
+      (unless single-article-buffer
        (when (gnus-buffer-live-p article-buffer)
          (with-current-buffer article-buffer
            ;; Don't kill sticky article buffers