+2004-10-21 Yoichi NAKAYAMA <yoichi@geiin.org>
+
+ * mime-view.el (mime-view-insert-fontified-text-content): Use
+ dummy absolute path in buffer-file-name. (by Katsumi Yamaoka)
+ Force fontify for jit-lock-mode.
+
2004-09-27 Yoichi NAKAYAMA <yoichi@geiin.org>
* mime-edit.el (mime-edit-temp-message-buffer): Define.
(buffer-disable-undo)
(kill-all-local-variables)
(mime-view-insert-text-content entity situation)
- (if mode
- (funcall mode)
- (if (setq filename (mime-entity-filename entity))
- (unwind-protect
- (progn
- (setq buffer-file-name filename)
- (set-auto-mode))
- (setq buffer-file-name nil))))
+ (cond (mode
+ (funcall mode))
+ ((setq filename (mime-entity-filename entity))
+ (let ((buffer-file-name
+ (expand-file-name (file-name-nondirectory filename)
+ temporary-file-directory)))
+ (set-auto-mode))))
(require 'font-lock)
(let ((font-lock-verbose nil))
;; I find font-lock a bit too verbose.
- (font-lock-fontify-buffer))
+ (font-lock-fontify-buffer)
+ (when (and (boundp 'jit-lock-mode)
+ jit-lock-mode)
+ (jit-lock-fontify-now)))
;; By default, XEmacs font-lock uses non-duplicable text
;; properties. This code forces all the text properties
;; to be copied along with the text.