From: morioka Date: Mon, 17 Mar 1997 12:44:38 +0000 (+0000) Subject: (mime-view-header-visible-p): Don't calculate ctype is optional X-Git-Tag: Hokutetsu-Ishikawa-new~93 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ada610b6a4331c973fe42a16aa603a9d70605fac;p=elisp%2Fsemi.git (mime-view-header-visible-p): Don't calculate ctype is optional argument `ctype' is not nil. --- diff --git a/mime-view.el b/mime-view.el index de84d10..193b627 100644 --- a/mime-view.el +++ b/mime-view.el @@ -6,7 +6,7 @@ ;; Created: 1994/7/13 ;; Renamed: 1994/8/31 from tm-body.el ;; Renamed: 1997/02/19 from tm-view.el -;; Version: $Revision: 0.37 $ +;; Version: $Revision: 0.38 $ ;; Keywords: MIME, multimedia, mail, news ;; This file is part of SEMI (SEMI is Emacs MIME Interfaces). @@ -40,7 +40,7 @@ ;;; (defconst mime-view-RCS-ID - "$Id: mime-view.el,v 0.37 1997-03-17 12:12:01 morioka Exp $") + "$Id: mime-view.el,v 0.38 1997-03-17 12:44:38 morioka Exp $") (defconst mime-view-version (get-version-string mime-view-RCS-ID)) @@ -198,12 +198,14 @@ Each elements are regexp of field-name. [mime-view.el]") ;;; (defun mime-view-header-visible-p (rcnum cinfo &optional ctype) + "Return non-nil if header of current entity is visible." (or (null rcnum) (progn - (setq ctype - (mime::content-info/type - (mime-article/rcnum-to-cinfo (cdr rcnum) cinfo) - )) + (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) )))