Further non-group buffer fixups
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 12 Apr 2012 18:09:29 +0000 (20:09 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 12 Apr 2012 18:09:29 +0000 (20:09 +0200)
* gnus-sum.el (gnus-handle-ephemeral-exit): Avoid creating the group
buffer if it doesn't exist.

lisp/ChangeLog
lisp/gnus-sum.el

index 0ea8277..075036a 100644 (file)
@@ -1,5 +1,8 @@
 2012-04-12  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-sum.el (gnus-handle-ephemeral-exit): Avoid creating the group
+       buffer if it doesn't exist.
+
        * gnus-group.el (gnus-group-read-ephemeral-group): If no quit-config is
        given, mark the group as ephemeral with the current window conf.
 
index 5f9cc3c..b99b2fb 100644 (file)
@@ -7363,7 +7363,8 @@ If FORCE (the prefix), also save the .newsrc file(s)."
   "Handle movement when leaving an ephemeral group.
 The state which existed when entering the ephemeral is reset."
   (if (not (buffer-live-p (car quit-config)))
-      (gnus-configure-windows 'group 'force)
+      (when (buffer-live-p gnus-group-buffer)
+       (gnus-configure-windows 'group 'force))
     (set-buffer (car quit-config))
     (unless (eq (cdr quit-config) 'group)
       (setq gnus-current-select-method