(set-buffer mime-mother-buffer)
(mime-preview-original-major-mode recursive)
)
- (cdr (assq 'original-major-mode
+ (cdr (assq 'major-mode
(get-text-property (or point (point)) 'mime-view-situation)))))
situation))
(defun mime-view-entity-title (entity)
- (or (mime-read-field 'Content-Description entity)
- (mime-read-field 'Subject entity)
+ (or (mime-entity-read-field entity 'Content-Description)
+ (mime-entity-read-field entity 'Subject)
(mime-entity-filename entity)
""))
(or preview-buffer
(setq preview-buffer
(concat "*Preview-" (mime-entity-name message) "*")))
+ (or original-major-mode
+ (setq original-major-mode
+ (with-current-buffer (mime-entity-header-buffer message)
+ major-mode)))
;; (set-buffer raw-buffer)
;; (setq mime-preview-buffer preview-buffer)
(let ((inhibit-read-only t))