From: morioka Date: Thu, 25 Sep 1997 15:04:59 +0000 (+0000) Subject: (mime-view-cut-header): Don't use `member-if'. X-Git-Tag: semi-0_115~9 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=eb2d6c0abc1bc48ee1a9ba32d217a65c62009046;p=elisp%2Fsemi.git (mime-view-cut-header): Don't use `member-if'. --- diff --git a/mime-view.el b/mime-view.el index 17bc11d..7c0cf21 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.114 $ +;; Version: $Revision: 0.115 $ ;; Keywords: MIME, multimedia, mail, news ;; This file is part of SEMI (SEMI is Emacs MIME Interfaces). @@ -39,7 +39,7 @@ ;;; (defconst mime-view-RCS-ID - "$Id: mime-view.el,v 0.114 1997-09-25 13:03:50 morioka Exp $") + "$Id: mime-view.el,v 0.115 1997-09-25 15:04:59 morioka Exp $") (defconst mime-view-version `,(get-version-string mime-view-RCS-ID)) @@ -279,16 +279,19 @@ Please redefine this function if you want to change default setting." (end (match-end 0)) (name (buffer-substring beg end)) ) - (or (member-if (function - (lambda (regexp) - (string-match regexp name) - )) mime-view-visible-field-list) - (delete-region beg - (save-excursion - (if (re-search-forward "^\\([^ \t]\\|$\\)" nil t) - (match-beginning 0) - (point-max)))) - )))) + (catch 'visible + (let ((rest mime-view-visible-field-list)) + (while rest + (if (string-match (car rest) name) + (throw 'visible nil) + ) + (setq rest (cdr rest)))) + (delete-region beg + (save-excursion + (if (re-search-forward "^\\([^ \t]\\|$\\)" nil t) + (match-beginning 0) + (point-max)))) + )))) (defun mime-view-default-content-header-filter () (mime-view-cut-header)