summaryrefslogtreecommitdiff
path: root/lisp/gnus/mm-extern.el
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2006-04-12 05:23:27 +0000
committerMiles Bader <miles@gnu.org>2006-04-12 05:23:27 +0000
commit163cb72dcb641bd2e68d3b6887cfef71bb1464ae (patch)
tree2c0eef4a12f4886deb2f2d2aed42423f5e1f6d1c /lisp/gnus/mm-extern.el
parent16a3b9b72cb7384be867dda93d9a6e71fd5e4847 (diff)
downloademacs-163cb72dcb641bd2e68d3b6887cfef71bb1464ae.tar.gz
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-214
Merge from gnus--rel--5.10 Patches applied: * gnus--rel--5.10 (patch 83) - Update from CVS
Diffstat (limited to 'lisp/gnus/mm-extern.el')
-rw-r--r--lisp/gnus/mm-extern.el24
1 files changed, 5 insertions, 19 deletions
diff --git a/lisp/gnus/mm-extern.el b/lisp/gnus/mm-extern.el
index b736374f016..c574bd6156e 100644
--- a/lisp/gnus/mm-extern.el
+++ b/lisp/gnus/mm-extern.el
@@ -157,25 +157,11 @@ If NO-DISPLAY is nil, display it. Otherwise, do nothing after replacing."
(save-excursion
(save-restriction
(narrow-to-region (point) (point))
- (let* ((type (regexp-quote
- (mm-handle-media-type (mm-handle-cache handle))))
- ;; Force the part to be displayed (but if there is no
- ;; method to display, a user will be prompted to save).
- ;; See `gnus-mime-display-single'.
- (mm-inline-override-types nil)
- (mm-attachment-override-types
- (cons type mm-attachment-override-types))
- (mm-automatic-display (cons type mm-automatic-display))
- (mm-automatic-external-display
- (cons type mm-automatic-external-display))
- ;; Suppress adding of button to the cached part.
- (gnus-inhibit-mime-unbuttonizing nil))
- (gnus-display-mime (mm-handle-cache handle)))
- ;; Move undisplayer added to the cached handle to the parent.
- (mm-handle-set-undisplayer
- handle
- (mm-handle-undisplayer (mm-handle-cache handle)))
- (mm-handle-set-undisplayer (mm-handle-cache handle) nil)))))
+ (mm-display-part (mm-handle-cache handle))))
+ ;; Move undisplayer added to the cached handle to the parent.
+ (mm-handle-set-undisplayer
+ handle (mm-handle-undisplayer (mm-handle-cache handle)))
+ (mm-handle-set-undisplayer (mm-handle-cache handle) nil)))
(provide 'mm-extern)