+1998-10-21 MORIOKA Tomohiko <morioka@jaist.ac.jp>
+
+ * mime-view.el, SEMI-ELS: Move function `mime-display-text/plain',
+ `mime-display-text/enriched' and `mime-display-text/richtext' from
+ mime-text to mime-view.el; abolish mime-text.el.
+
+ * mime-play.el: Don't Require `mime-text' when compiling.
+
+ * mime-w3.el: Require `mime' instead of `mime-text'.
+
+1998-10-21 MORIOKA Tomohiko <morioka@jaist.ac.jp>
+
+ * semi-setup.el (mime-setup-enable-inline-image): Use `(featurep
+ 'xemacs)' instead of `running-xemacs'.
+
1998-10-20 MORIOKA Tomohiko <morioka@jaist.ac.jp>
* README.en (Required environment): Modify to require APEL 9.5 and
(setq semi-modules-to-compile
'(signature
- semi-def mime-view mime-text mime-play mime-partial mime-edit
+ semi-def mime-view mime-play mime-partial mime-edit
semi-setup mail-mime-setup))
(setq semi-modules-not-to-compile nil)
;;; @@@ entity presentation
;;;
-(autoload 'mime-display-text/plain "mime-text")
-(autoload 'mime-display-text/enriched "mime-text")
-(autoload 'mime-display-text/richtext "mime-text")
+(defun mime-display-text/plain (entity situation)
+ (save-restriction
+ (narrow-to-region (point-max)(point-max))
+ (mime-insert-text-content entity)
+ (run-hooks 'mime-text-decode-hook)
+ (goto-char (point-max))
+ (if (not (eq (char-after (1- (point))) ?\n))
+ (insert "\n")
+ )
+ (mime-add-url-buttons)
+ (run-hooks 'mime-display-text/plain-hook)
+ ))
+
+(defun mime-display-text/richtext (entity situation)
+ (save-restriction
+ (narrow-to-region (point-max)(point-max))
+ (mime-insert-text-content entity)
+ (run-hooks 'mime-text-decode-hook)
+ (let ((beg (point-min)))
+ (remove-text-properties beg (point-max) '(face nil))
+ (richtext-decode beg (point-max))
+ )))
+
+(defun mime-display-text/enriched (entity situation)
+ (save-restriction
+ (narrow-to-region (point-max)(point-max))
+ (mime-insert-text-content entity)
+ (run-hooks 'mime-text-decode-hook)
+ (let ((beg (point-min)))
+ (remove-text-properties beg (point-max) '(face nil))
+ (enriched-decode beg (point-max))
+ )))
(defvar mime-view-announcement-for-message/partial
(if (and (>= emacs-major-version 19) window-system)
;; for image/* and X-Face
(defvar mime-setup-enable-inline-image
(and window-system
- (or running-xemacs
+ (or (featurep 'xemacs)
(and (featurep 'mule)(module-installed-p 'bitmap))
))
"*If it is non-nil, semi-setup sets up to use mime-image.")