Mercurial > emacs
diff lisp/gnus/mm-decode.el @ 111214:b01067bf2ec9
gnus-art.el: Improve MIME part functions.
gnus-art.el (gnus-article-jump-to-part): Error on no part; fix prompt.
(gnus-mime-copy-part): Check coding system, not charset.
(gnus-mime-view-part-externally): Never remove part.
(gnus-mime-view-part-internally): Don't remove part here.
(gnus-article-part-wrapper): Make sure MIME tag is visible.
(gnus-article-goto-part): Go to displayed or preferred subpart if it is multipart/alternative.
mm-decode.el (mm-display-part): Take optional arg `force'.
author | Katsumi Yamaoka <yamaoka@jpl.org> |
---|---|
date | Thu, 28 Oct 2010 06:37:35 +0000 |
parents | d0c566960277 |
children | 8bf30c3cb442 |
line wrap: on
line diff
--- a/lisp/gnus/mm-decode.el Wed Oct 27 20:49:40 2010 -0700 +++ b/lisp/gnus/mm-decode.el Thu Oct 28 06:37:35 2010 +0000 @@ -696,13 +696,14 @@ (autoload 'mailcap-parse-mailcaps "mailcap") (autoload 'mailcap-mime-info "mailcap") -(defun mm-display-part (handle &optional no-default) +(defun mm-display-part (handle &optional no-default force) "Display the MIME part represented by HANDLE. Returns nil if the part is removed; inline if displayed inline; external if displayed external." (save-excursion (mailcap-parse-mailcaps) - (if (mm-handle-displayed-p handle) + (if (and (not force) + (mm-handle-displayed-p handle)) (mm-remove-part handle) (let* ((ehandle (if (equal (mm-handle-media-type handle) "message/external-body")