;; Created: 1994/7/13
;; Renamed: 1994/8/31 from tm-body.el
;; Renamed: 1997/02/19 from tm-view.el
-;; Version: $Revision: 0.44 $
+;; Version: $Revision: 0.45 $
;; 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.44 1997-03-17 13:46:57 morioka Exp $")
+ "$Id: mime-view.el,v 0.45 1997-03-17 13:49:27 morioka Exp $")
(defconst mime-view-version (get-version-string mime-view-RCS-ID))
;;; @@ predicate functions
;;;
-(defun mime-view-header-visible-p (rcnum cinfo &optional ctype)
+(defun mime-view-header-visible-p (rcnum cinfo)
"Return non-nil if header of current entity is visible."
(or (null rcnum)
- (progn
- (or ctype
- (setq ctype
- (mime::content-info/type
- (mime-article/rcnum-to-cinfo (cdr rcnum) cinfo)
- )))
- (member ctype mime-view-childrens-header-showing-Content-Type-list)
- )))
+ (member (mime::content-info/type
+ (mime-article/rcnum-to-cinfo (cdr rcnum) cinfo))
+ mime-view-childrens-header-showing-Content-Type-list)
+ ))
(defun mime-view-body-visible-p (rcnum cinfo &optional ctype)
(let (ccinfo)
;;;
(defun mime-preview/default-content-separator (rcnum cinfo ctype params subj)
- (if (and (not (mime-view-header-visible-p rcnum cinfo ctype))
+ (if (and (not (mime-view-header-visible-p rcnum cinfo))
(not (mime-view-body-visible-p rcnum cinfo ctype))
)
(progn
(setq nb (point))
(narrow-to-region nb nb)
(mime-view-entity-button-function rcnum cinfo ctype params subj encoding)
- (if (mime-view-header-visible-p rcnum cinfo ctype)
+ (if (mime-view-header-visible-p rcnum cinfo)
(mime-preview/display-header beg he)
)
(if (and (null rcnum)