1999-09-29 MORIOKA Tomohiko <tomo@m17n.org>
+ * mime-view.el (mime-display-multipart/mixed): Share cell of
+ `major-mode'.
+ (mime-display-multipart/alternative): Likewise.
+ (mime-display-entity): Refer `major-mode' value of a situation
+ instead of buffer-local-variable `major-mode'.
+
+1999-09-29 MORIOKA Tomohiko <tomo@m17n.org>
+
* mime-play.el (mime-preview-play-current-entity): Use
text-property `mime-view-situation' as the initial value of
acting-situation to add major-mode.
1.13.4 Terai \e$(B;{0f\e(B
1.13.5 Meih\e-Dò\e-A \e$(BL@Jv\e(B
1.13.6 Komatsu \e$(B>.>>\e(B
+1.13.7 Awazu \e$(B0@DE\e(B
: : :
------- Tsuruga \e$(BFX2l\e(B ; = JR \e$(B>.IM@~\e(B
------- Shin-Hikida \e$(B?7I%ED\e(B
1.13.4 Nishi-Yaizu \e$(B@>>FDE\e(B
1.13.5 Fijieda \e$(BF#;^\e(B
1.13.6 Rokug\e-Dò\e-A \e$(BO;9g\e(B
------- Shimada \e$(BEgED\e(B
+1.13.7 Shimada \e$(BEgED\e(B
------ Kanaya \e$(B6bC+\e(B ; = \e$(BBg0f@nE4F;\e(B
------ Kikugawa \e$(B5F@n\e(B
------ Kakegawa \e$(B3]@n\e(B ; = \e$(BE7N5IML>8PE4F;\e(B
(cons (cons 'encoding (or (mime-entity-encoding entity)
"7bit"))
situation)))
-
- ;; major-mode
- ;; (or (assq 'major-mode situation)
- ;; (setq situation
- ;; (cons (cons 'major-mode
- ;; (with-current-buffer (mime-entity-buffer entity)
- ;; major-mode))
- ;; situation)))
situation))
(defun mime-display-multipart/mixed (entity situation)
(let ((children (mime-entity-children entity))
- (original-major-mode (cdr (assq 'major-mode situation)))
+ (original-major-mode-cell (assq 'major-mode situation))
(default-situation
(cdr (assq 'childrens-situation situation))))
- (if original-major-mode
+ (if original-major-mode-cell
(setq default-situation
- (cons (cons 'major-mode original-major-mode)
- default-situation))
- )
+ (cons original-major-mode-cell default-situation)))
(while children
(mime-display-entity (car children) nil default-situation)
(setq children (cdr children))
(defun mime-display-multipart/alternative (entity situation)
(let* ((children (mime-entity-children entity))
- (original-major-mode (cdr (assq 'major-mode situation)))
+ (original-major-mode-cell (assq 'major-mode situation))
(default-situation
(cdr (assq 'childrens-situation situation)))
(i 0)
(p 0)
(max-score 0)
situations)
- (if original-major-mode
+ (if original-major-mode-cell
(setq default-situation
- (cons (cons 'major-mode original-major-mode)
- default-situation))
- )
+ (cons original-major-mode-cell default-situation)))
(setq situations
(mapcar (function
(lambda (child)
(eq (cdr (assq 'header situation)) 'visible))
(header-presentation-method
(or (cdr (assq 'header-presentation-method situation))
- (cdr (assq major-mode mime-header-presentation-method-alist))))
+ (cdr (assq (cdr (assq 'major-mode situation))
+ mime-header-presentation-method-alist))))
(body-presentation-method
(cdr (assq 'body-presentation-method situation)))
(children (mime-entity-children entity)))
(eval-when-compile (require 'static))
-(defconst mime-user-interface-product ["WEMI" (1 13 6) "Rokugò"]
+(defconst mime-user-interface-product ["WEMI" (1 13 7) "Shimada"]
"Product name, version number and code name of MIME-kernel package.")
(autoload 'mule-caesar-region "mule-caesar"