From 65cc68b35d7f54faf0ddc69db6e46eba6c43d426 Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Sun, 3 Oct 2010 14:37:54 +0200 Subject: [PATCH] If the article buffer isn't shown, then select the current article first instead of bugging out. --- lisp/ChangeLog | 4 ++++ lisp/gnus-sum.el | 2 ++ 2 files changed, 6 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 775bfa0ca..ed6b8dd69 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,9 @@ 2010-10-03 Lars Magne Ingebrigtsen + * 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. diff --git a/lisp/gnus-sum.el b/lisp/gnus-sum.el index d9a7621ba..a000cddf5 100644 --- a/lisp/gnus-sum.el +++ b/lisp/gnus-sum.el @@ -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))) -- 2.25.1