Ensure that the buffer is alive before we try to find its window.
authorLars Magne Ingebrigtsen <larsi@stories.(none)>
Fri, 6 Jan 2012 18:54:16 +0000 (19:54 +0100)
committerLars Magne Ingebrigtsen <larsi@stories.(none)>
Fri, 6 Jan 2012 18:54:16 +0000 (19:54 +0100)
This makes exiting from groups entered by `G G' work.

lisp/ChangeLog
lisp/gnus-win.el

index 730b6dd..b6e0a5a 100644 (file)
@@ -1,3 +1,8 @@
+2012-01-06  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * 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  <bsniffen@akamai.com>  (tiny change)
 
        * mm-decode.el (mm-display-external): Use a longer timeout for the
index 483adb9..579210c 100644 (file)
@@ -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))