Allow exiting from Gnus when just reading a single group from "without" Gnus.
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 6 Feb 2012 22:21:40 +0000 (22:21 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 6 Feb 2012 22:21:40 +0000 (22:21 +0000)
lisp/ChangeLog
lisp/gnus-sum.el

index 167c595..051d0ae 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-06  Lars Ingebrigtsen  <larsi@gnus.org>
+
+       * gnus-sum.el (gnus-handle-ephemeral-exit): Allow exiting from Gnus
+       when just reading a single group from "without" Gnus.
+
 2012-02-06  Chong Yidong  <cyd@gnu.org>
 
        * gnus-sum.el (gnus-summary-show-thread):
index 7b234a3..c7f80ec 100644 (file)
@@ -7352,7 +7352,7 @@ If FORCE (the prefix), also save the .newsrc file(s)."
 (defun gnus-handle-ephemeral-exit (quit-config)
   "Handle movement when leaving an ephemeral group.
 The state which existed when entering the ephemeral is reset."
-  (if (not (buffer-name (car quit-config)))
+  (if (not (buffer-live-p (car quit-config)))
       (gnus-configure-windows 'group 'force)
     (set-buffer (car quit-config))
     (unless (eq (cdr quit-config) 'group)