From: morioka Date: Wed, 17 Jun 1998 13:17:07 +0000 (+0000) Subject: Modify for SEMI 1.7. X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Funlabeled-1.18.4;p=elisp%2Femh.git Modify for SEMI 1.7. (emh-display-header-hook): Renamed from `emh-content-header-filter-hook'. (emh-header-presentation-method): New function; setup for `mime-header-presentation-method-alist'; abolish `emh-content-header-filter'. --- diff --git a/emh.el b/emh.el index 4594479..6cbf04e 100644 --- a/emh.el +++ b/emh.el @@ -38,7 +38,7 @@ ;;; @ version ;;; -(defconst emh-version "1.4.0") +(defconst emh-version "1.5.0") ;;; @ variable @@ -228,26 +228,25 @@ digest are inserted into the folder after that message." (set-alist 'mime-raw-representation-type-alist 'mh-show-mode 'binary) -(defvar emh-content-header-filter-hook - (if window-system - '(emh-highlight-header) - ) + +(defvar emh-display-header-hook (if window-system + '(emh-highlight-header) + ) "Hook for header filtering.") (autoload 'emh-highlight-header "emh-face") -(defun emh-content-header-filter () - "Header filter for mime-view. -It is registered to variable `mime-view-content-header-filter-alist'." - (goto-char (point-min)) - (mime-view-cut-header) - (eword-decode-header default-mime-charset) - (run-hooks 'emh-content-header-filter-hook) +(defun emh-header-presentation-method (entity situation) + (mime-insert-decoded-header + entity + mime-view-ignored-field-list mime-view-visible-field-list + default-mime-charset) + (run-hooks 'emh-display-header-hook) ) -(set-alist 'mime-view-content-header-filter-alist - 'mh-show-mode - (function emh-content-header-filter)) +(set-alist 'mime-header-presentation-method-alist + 'mh-show-mode #'emh-header-presentation-method) + (defun emh-quitting-method () (let ((buf (current-buffer))) @@ -264,9 +263,7 @@ It is registered to variable `mime-view-content-header-filter-alist'." (set-alist 'mime-preview-quitting-method-alist 'mh-show-mode #'emh-quitting-method) -(set-alist 'mime-view-show-summary-method - 'mh-show-mode - (function emh-quitting-method)) + (defun emh-following-method (buf) (save-excursion @@ -282,22 +279,21 @@ It is registered to variable `mime-view-content-header-filter-alist'." (goto-char last) ))) -(set-alist 'mime-view-following-method-alist - 'mh-show-mode - (function emh-following-method)) +(set-alist 'mime-preview-following-method-alist + 'mh-show-mode #'emh-following-method) ;;; @@ for mime-partial ;;; -(autoload 'mime-method-to-combine-message/partial-pieces +(autoload 'mime-combine-message/partial-pieces-automatically "mime-partial" "Internal method to combine message/partial messages automatically.") (mime-add-condition 'action '((type . message)(subtype . partial) - (method . mime-method-to-combine-message/partial-pieces) + (method . mime-combine-message/partial-pieces-automatically) (major-mode . mh-show-mode) (summary-buffer-exp . (and (or (string-match "^article-\\(.+\\)$"