* gnus-art.el (gnus-article-prepare-display): Setup MIME entity even if
authoryamaoka <yamaoka>
Thu, 8 Mar 2001 23:47:26 +0000 (23:47 +0000)
committeryamaoka <yamaoka>
Thu, 8 Mar 2001 23:47:26 +0000 (23:47 +0000)
 `gnus-show-mime' is nil.

ChangeLog
lisp/gnus-art.el

index df83f1e..a5dc626 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-08  Katsumi Yamaoka <yamaoka@jpl.org>
+
+       * lisp/gnus-art.el (gnus-article-prepare-display): Setup MIME
+       entity even if `gnus-show-mime' is nil.
+
 2001-03-06  Katsumi Yamaoka <yamaoka@jpl.org>
 
        * lisp/nnshimbun.el (nnshimbun-retrieve-url): Check if
index d3e7531..8e3b3d3 100644 (file)
@@ -3230,20 +3230,17 @@ If ALL-HEADERS is non-nil, no headers are hidden."
   (setq gnus-article-wash-types nil)
   (gnus-run-hooks 'gnus-tmp-internal-hook)
   ;; Display message.
-  (let (mime-display-header-hook mime-display-text/plain-hook)
-    (funcall (if gnus-show-mime
-                (progn
-                  (setq mime-message-structure gnus-current-headers)
-                  (mime-buffer-entity-set-buffer-internal
-                   mime-message-structure
-                   gnus-original-article-buffer)
-                  (mime-entity-set-representation-type-internal
-                   mime-message-structure 'mime-buffer-entity)
-                  (luna-send mime-message-structure
-                             'initialize-instance
-                             mime-message-structure)
-                  gnus-article-display-method-for-mime)
-              gnus-article-display-method-for-traditional)))
+  (setq mime-message-structure gnus-current-headers)
+  (mime-buffer-entity-set-buffer-internal mime-message-structure
+                                         gnus-original-article-buffer)
+  (mime-entity-set-representation-type-internal mime-message-structure
+                                               'mime-buffer-entity)
+  (luna-send mime-message-structure 'initialize-instance
+            mime-message-structure)
+  (if gnus-show-mime
+      (let (mime-display-header-hook mime-display-text/plain-hook)
+       (funcall gnus-article-display-method-for-mime))
+    (funcall gnus-article-display-method-for-traditional))
   ;; Associate this article with the current summary buffer.
   (setq gnus-article-current-summary gnus-summary-buffer)
   ;; Call the treatment functions.