* elmo-mime.el (elmo-mime-display-as-is-internal): Put text
authorhmurata <hmurata>
Thu, 16 Aug 2001 12:32:06 +0000 (12:32 +0000)
committerhmurata <hmurata>
Thu, 16 Aug 2001 12:32:06 +0000 (12:32 +0000)
property 'mime-preview-situation for `mime-preview-quit'.

elmo/ChangeLog
elmo/elmo-mime.el

index 4d79765..341192f 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-16  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
+
+       * elmo-mime.el (elmo-mime-display-as-is-internal): Put text
+       property 'mime-preview-situation for `mime-preview-quit'.
+
 2001-08-15  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
 
        * elmo.el (elmo-message-fetch-with-cache-process): Call
index e8977f6..b88cd10 100644 (file)
@@ -293,6 +293,10 @@ Return non-nil if cache is used."
       (save-restriction
        (std11-narrow-to-header)
        (run-hooks 'elmo-message-header-inserted-hook))
+      ;; set original major mode for mime-preview-quit
+      (put-text-property (point-min) (point-max)
+                        'mime-view-situation
+                        `((major-mode . ,original-major-mode)))
       (use-local-map
        (or keymap
           (if default-keymap-or-function