If the article buffer isn't shown, then select the current article first instead...
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 3 Oct 2010 12:37:54 +0000 (14:37 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 3 Oct 2010 12:37:54 +0000 (14:37 +0200)
lisp/ChangeLog
lisp/gnus-sum.el

index 775bfa0..ed6b8dd 100644 (file)
@@ -1,5 +1,9 @@
 2010-10-03  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-sum.el (gnus-summary-select-article-buffer): If the article
+       buffer isn't shown, then select the current article first instead of
+       bugging out.
+
        * shr.el (shr-fontize-cont): Protect against regions with no text.
        Rename tag functions to shr-tag-* for enhanced security.
        (shr-tag-ul, shr-tag-ol, shr-tag-li, shr-tag-br): New functions.
index d9a7621..a000cdd 100644 (file)
@@ -6933,6 +6933,8 @@ displayed, no centering will be performed."
   (interactive)
   (if (not (gnus-buffer-live-p gnus-article-buffer))
       (error "There is no article buffer for this summary buffer")
+    (unless (get-buffer-window gnus-article-buffer)
+      (gnus-summary-show-article))
     (select-window (get-buffer-window gnus-article-buffer))
     (gnus-configure-windows 'only-article t)))