From 155628057e1fc9dee052303df2ab7ff1ee5f08a8 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 6 Feb 2012 22:44:51 +0100 Subject: [PATCH] Minor Gnus group exit fix * gnus-sum.el (gnus-handle-ephemeral-exit): Allow exiting from Gnus when just reading a single group from "without" Gnus. --- lisp/gnus/ChangeLog | 5 +++++ lisp/gnus/gnus-sum.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 493734dc7bf..1d0e36d6479 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,8 @@ +2012-02-06 Lars Ingebrigtsen + + * 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 * gnus-sum.el (gnus-summary-show-thread): diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 7b234a3df22..c7f80ec1512 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el @@ -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) -- 2.39.5