(mime-insert-header-from-buffer): Use
authormorioka <morioka>
Sun, 8 Nov 1998 15:15:52 +0000 (15:15 +0000)
committermorioka <morioka>
Sun, 8 Nov 1998 15:15:52 +0000 (15:15 +0000)
`mime-find-field-presentation-method' and
`mime-find-field-decoder-internal'.

mmgeneric.el

index 325c463..3a7fa7a 100644 (file)
                                              &optional invisible-fields
                                              visible-fields)
   (let ((the-buf (current-buffer))
-       (decoder-alist
-         (cdr (assq 'wide mime-field-decoder-cache)))
+       (mode-obj (mime-find-field-presentation-method 'wide))
        field-decoder
        f-b p f-e field-name len field field-body)
     (save-excursion
            (setq field (intern
                         (capitalize (buffer-substring f-b (1- p))))
                  field-body (buffer-substring p f-e)
-                 field-decoder 
-                    (cdr (or (assq field decoder-alist)
-                             (prog1
-                                 (funcall mime-update-field-decoder-cache
-                                         field 'wide)
-                               (setq decoder-alist
-                                     (cdr (assq
-                                          'wide
-                                          mime-field-decoder-cache)))))))
+                 field-decoder (inline (mime-find-field-decoder-internal
+                                        field mode-obj)))
            (with-current-buffer the-buf
              (insert field-name)
              (insert (if field-decoder