;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;; Created: 1995/9/26 (separated from tm-view.el)
;; Renamed: 1997/2/21 from tm-play.el
-;; Version: $Id: mime-play.el,v 0.18 1997-03-16 00:22:03 morioka Exp $
+;; Version: $Id: mime-play.el,v 0.19 1997-03-17 04:41:21 morioka Exp $
;; Keywords: MIME, multimedia, mail, news
;; This file is part of SEMI (SEMI is Emacs MIME Interfaces).
(defvar mime-preview/after-decoded-position nil)
-(defun mime-preview/decode-content ()
+(defun mime-preview/decode-content (&optional mode)
(interactive)
(let ((pc (mime-preview/point-pcinfo (point))))
(if pc
(setq mime-preview/after-decoded-position (point))
(set-buffer (mime::preview-content-info/buffer pc))
(mime-article/decode-content
- (mime::preview-content-info/content-info pc))
+ (mime::preview-content-info/content-info pc) mode)
(if (eq (current-buffer)
(mime::preview-content-info/buffer pc))
(progn
))
))))
-(defun mime-article/decode-content (cinfo)
+(defun mime-article/decode-content (cinfo &optional mode)
+ (or mode
+ (setq mode mime-view-decoding-mode)
+ )
(let ((beg (mime::content-info/point-min cinfo))
(end (mime::content-info/point-max cinfo))
(ctype (or (mime::content-info/type cinfo) "text/plain"))
(cons 'encoding encoding)
(cons 'major-mode major-mode)
params))
- (if mime-view-decoding-mode
- (setq cal (cons
- (cons 'mode mime-view-decoding-mode)
- cal))
+ (if mode
+ (setq cal (cons (cons 'mode mode) cal))
)
(setq ret (mime/get-content-decoding-alist cal))
(setq method (cdr (assq 'method ret)))