From 342e4dd8615893782a80ed7895a7c4e793130a51 Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Fri, 6 Jan 2012 19:54:16 +0100 Subject: [PATCH] Ensure that the buffer is alive before we try to find its window. This makes exiting from groups entered by `G G' work. --- lisp/ChangeLog | 5 +++++ lisp/gnus-win.el | 1 + 2 files changed, 6 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 730b6dd8e..b6e0a5a23 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-01-06 Lars Magne Ingebrigtsen + + * gnus-win.el (gnus-all-windows-visible-p): Ensure that the buffer is + alive before we try to find its window. + 2012-01-06 Brian Sniffen (tiny change) * mm-decode.el (mm-display-external): Use a longer timeout for the diff --git a/lisp/gnus-win.el b/lisp/gnus-win.el index 483adb94d..579210c61 100644 --- a/lisp/gnus-win.el +++ b/lisp/gnus-win.el @@ -464,6 +464,7 @@ should have point." (unless buffer (error "Invalid buffer type: %s" type)) (if (and (setq buf (get-buffer (gnus-window-to-buffer-helper buffer))) + (buffer-live-p buf) (setq win (gnus-get-buffer-window buf t))) (if (memq 'point split) (setq all-visible win)) -- 2.34.1