(gnus-summary-preview-mime-message): Protect against dead windows.
authortsuchiya <tsuchiya>
Mon, 21 Jan 2002 14:43:08 +0000 (14:43 +0000)
committertsuchiya <tsuchiya>
Mon, 21 Jan 2002 14:43:08 +0000 (14:43 +0000)
ChangeLog
lisp/gnus-sum.el

index ce97e2a..7b6a099 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2002-01-21  TSUCHIYA Masatoshi  <tsuchiya@namazu.org>
 
+       * 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'.
index 05f181f..93576e8 100644 (file)
@@ -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.