From 8301575b26a0f4f183a4933a9b4b8348d8e9ef7b Mon Sep 17 00:00:00 2001 From: tsuchiya Date: Mon, 21 Jan 2002 14:43:08 +0000 Subject: [PATCH] (gnus-summary-preview-mime-message): Protect against dead windows. --- ChangeLog | 3 +++ lisp/gnus-sum.el | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ce97e2a..7b6a099 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2002-01-21 TSUCHIYA Masatoshi + * lisp/gnus-sum.el (gnus-summary-preview-mime-message): Protect + against dead windows. + * lisp/nnheader.el (mm-encode-coding-string): Alias to `encode-coding-string'. (mm-decode-coding-string): Alias to 'decode-coding-string'. diff --git a/lisp/gnus-sum.el b/lisp/gnus-sum.el index 05f181f..93576e8 100644 --- a/lisp/gnus-sum.el +++ b/lisp/gnus-sum.el @@ -6236,7 +6236,9 @@ The state which existed when entering the ephemeral is reset." (let ((gnus-break-pages nil) (gnus-show-mime t)) (gnus-summary-select-article gnus-show-all-headers t)) - (select-window (get-buffer-window gnus-article-buffer))) + (let ((w (get-buffer-window gnus-article-buffer))) + (when w + (select-window (get-buffer-window gnus-article-buffer))))) ;;; Dead summaries. -- 1.7.10.4