gnus-art.el (gnus-article-prepare, gnus-article-prepare-display): Display header...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 17 Feb 2014 06:51:53 +0000 (06:51 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 17 Feb 2014 06:51:53 +0000 (06:51 +0000)
lisp/ChangeLog
lisp/gnus-art.el

index bfbc2ea..2184631 100644 (file)
@@ -1,3 +1,9 @@
+2014-02-17  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-art.el (gnus-article-prepare, gnus-article-prepare-display):
+       Display header attachment buttons by gnus-article-prepare-display
+       rather than gnus-article-prepare so as to view in mml-preview as well.
+
 2014-02-13  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * auth-source.el (auth-sources): Add pointer to what the .gpg extension
index eb57a55..06792b8 100644 (file)
@@ -4696,9 +4696,6 @@ If ALL-HEADERS is non-nil, no headers are hidden."
            (when (or (numberp article)
                      (stringp article))
              (gnus-article-prepare-display)
-             ;; Add attachment buttons to the header.
-             (when gnus-mime-display-attachment-buttons-in-header
-               (gnus-mime-buttonize-attachments-in-header))
              ;; Do page break.
              (goto-char (point-min))
              (when gnus-break-pages
@@ -4729,7 +4726,10 @@ If ALL-HEADERS is non-nil, no headers are hidden."
          gnus-article-image-alist nil)
     (gnus-run-hooks 'gnus-tmp-internal-hook)
     (when gnus-display-mime-function
-      (funcall gnus-display-mime-function))))
+      (funcall gnus-display-mime-function))
+    ;; Add attachment buttons to the header.
+    (when gnus-mime-display-attachment-buttons-in-header
+      (gnus-mime-buttonize-attachments-in-header))))
 
 ;;;
 ;;; Gnus Sticky Article Mode