`mime-setup-enable-inline-html', `mime-setup-enable-vcard', and
`mime-setup-enable-pgp' until when `mime-view' is loaded.
+2001-08-10 Kenichi OKADA <okada@opaopa.org>
+
+ * semi-def.el (mime-browse-url-regexp): Allow nntps and ftps.
+
+2001-06-12 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * mime-view.el (mime-display-multipart/related): When "start"
+ parameter specifies part, treat the part as root.
+
+2001-06-12 Akihiro Arisawa <ari@mbf.sphere.ne.jp>
+
+ * mime-view.el (mime-display-multipart/related): New function; set up
+ for `mime-preview-condition'.
+
2001-06-02 Daiki Ueno <ueno@unixuser.org>
* pgg.texi (Registering backend): New section.
* SEMI-ELS (semi-modules-to-compile): Don't compile smime.el.
+2001-04-19 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * mime-bbdb.el: Load "bbdb-hooks" when the symbol function
+ `bbdb-extract-field-value' is not bound or it is set up as an
+ autoloaded function. [cf. <emacs-mime-ja:799,842,843,844,845,846>]
+
+2001-04-17 YAMASHITA Junji <ysjj@unixuser.org>
+
+ * semi-def.el (mime-browse-url-regexp): Allow https.
+
+2001-03-06 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
+
+ * mime-edit.el (mime-edit-set-parameter): Get rid of the duplicated
+ optional fields.
+
+2000-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
+
+ * mime-view.el: Revert to use `static'.
+
2000-12-26 Daiki Ueno <ueno@unixuser.org>
* pgg-pgp.el (pgg-pgp-messages-coding-system): Abolish.
(progn
;; (require 'bbdb-hooks) ; not provided.
;; (or (fboundp 'bbdb-extract-field-value) ; defined as autoload
- (or (fboundp 'bbdb-header-start)
- (load "bbdb-hooks"))
+
+ ;; almost BBDB functions are autoloaded.
+ ;; (or (fboundp 'bbdb-header-start)
+ (or (and (fboundp 'bbdb-extract-field-value)
+ (not (eq 'autoload (car-safe (symbol-function
+ 'bbdb-extract-field-value)))))
+ (load "bbdb-hooks"))
(fset 'tm:bbdb-extract-field-value
- (symbol-function 'bbdb-extract-field-value))
+ (symbol-function 'bbdb-extract-field-value))
(defun bbdb-extract-field-value (field)
(let ((value (tm:bbdb-extract-field-value field)))
(and value
(require 'alist)
(require 'mime-conf)
+(eval-when-compile (require 'static))
+
;;; @ version
;;;
(with-temp-buffer
(insert-file-contents file)
(setq mime-situation-examples-file-coding-system
- (and (boundp 'buffer-file-coding-system)
- buffer-file-coding-system)
- ;; (static-cond
- ;; ((boundp 'buffer-file-coding-system)
- ;; (symbol-value 'buffer-file-coding-system))
- ;; ((boundp 'file-coding-system)
- ;; (symbol-value 'file-coding-system))
- ;; (t nil))
+ (static-cond
+ ((boundp 'buffer-file-coding-system)
+ (symbol-value 'buffer-file-coding-system))
+ ((boundp 'file-coding-system)
+ (symbol-value 'file-coding-system))
+ (t nil))
+ ;; (and (boundp 'buffer-file-coding-system)
+ ;; buffer-file-coding-system)
)
(condition-case error
(eval-buffer)
(insert "\n;;; "
(file-name-nondirectory file)
" ends here.\n")
- (setq buffer-file-coding-system
- mime-situation-examples-file-coding-system)
- ;; (static-cond
- ;; ((boundp 'buffer-file-coding-system)
- ;; (setq buffer-file-coding-system
- ;; mime-situation-examples-file-coding-system))
- ;; ((boundp 'file-coding-system)
- ;; (setq file-coding-system
- ;; mime-situation-examples-file-coding-system)))
+ (static-cond
+ ((boundp 'buffer-file-coding-system)
+ (setq buffer-file-coding-system
+ mime-situation-examples-file-coding-system))
+ ((boundp 'file-coding-system)
+ (setq file-coding-system
+ mime-situation-examples-file-coding-system)))
+ ;; (setq buffer-file-coding-system
+ ;; mime-situation-examples-file-coding-system)
(setq buffer-file-name file)
(save-buffer)))))
(ctree-set-calist-strictly
'mime-preview-condition
+ '((type . multipart)(subtype . related)
+ (body . visible)
+ (body-presentation-method . mime-display-multipart/related)))
+
+(ctree-set-calist-strictly
+ 'mime-preview-condition
'((type . multipart)(subtype . t)
(body . visible)
(body-presentation-method . mime-display-multipart/mixed)))
situations (cdr situations)
i (1+ i)))))
+(defun mime-display-multipart/related (entity situation)
+ (let* ((param-start (mime-parse-msg-id
+ (std11-lexical-analyze
+ (cdr (assoc "start"
+ (mime-content-type-parameters
+ (mime-entity-content-type entity)))))))
+ (start (or (and param-start (mime-find-entity-from-content-id
+ param-start
+ entity))
+ (car (mime-entity-children entity))))
+ (original-major-mode-cell (assq 'major-mode situation))
+ (default-situation (cdr (assq 'childrens-situation situation))))
+ (if original-major-mode-cell
+ (setq default-situation
+ (cons original-major-mode-cell default-situation)))
+ (mime-display-entity start nil default-situation)))
;;; @ acting-condition
;;;