;; Created: 1994/7/13
;; Renamed: 1994/8/31 from tm-body.el
;; Renamed: 1997/02/19 from tm-view.el
-;; Version: $Revision: 0.39 $
+;; Version: $Revision: 0.40 $
;; Keywords: MIME, multimedia, mail, news
;; This file is part of SEMI (SEMI is Emacs MIME Interfaces).
;;;
(defconst mime-view-RCS-ID
- "$Id: mime-view.el,v 0.39 1997-03-17 12:50:46 morioka Exp $")
+ "$Id: mime-view.el,v 0.40 1997-03-17 13:11:10 morioka Exp $")
(defconst mime-view-version (get-version-string mime-view-RCS-ID))
;;; @@ content button
;;;
-(defun mime-view-insert-entity-button
- (rcnum cinfo ctype params subj encoding)
+(defun mime-view-insert-entity-button (rcnum cinfo ctype params subj encoding)
+ "Insert entity-button."
(save-restriction
(narrow-to-region (point)(point))
(let ((access-type (assoc "access-type" params))
- (charset (assoc "charset" params))
(num (or (cdr (assoc "x-part-number" params))
(if (consp rcnum)
(mapconcat (function
)))
)
(t
- (insert (concat "[" num " " subj))
- (let ((rest
- (if (setq charset (cdr charset))
- (if encoding
- (format " <%s; %s (%s)>]\n"
- ctype charset encoding)
- (format " <%s; %s>]\n" ctype charset)
- )
- (format " <%s>]\n" ctype)
- )))
- (if (>= (+ (current-column)(length rest))(window-width))
- (setq rest (concat "\n\t" rest))
- )
- (insert rest)
- ))))
+ (let ((charset (cdr (assoc "charset" params))))
+ (insert (concat "[" num " " subj))
+ (let ((rest
+ (concat " <" ctype
+ (if charset
+ (concat "; " charset)
+ (if encoding (concat " (" encoding ")"))
+ )
+ ">]\n")))
+ (if (>= (+ (current-column)(length rest))(window-width))
+ (insert "\n\t")
+ )
+ (insert rest)
+ ))))
+ )
(mime-add-button (point-min)(1- (point-max))
(function mime-view-play-current-entity))
))