(mime-display-message): Use `major-mode' of current-buffer as default
authortomo <tomo>
Thu, 10 Feb 2000 10:50:26 +0000 (10:50 +0000)
committertomo <tomo>
Thu, 10 Feb 2000 10:50:26 +0000 (10:50 +0000)
value of `original-major-mode'; don't use `mime-entity-header-buffer'.

mime-view.el

index 83afc8c..005dfde 100644 (file)
@@ -1241,9 +1241,7 @@ keymap of MIME-View mode."
        (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)))
+       (setq original-major-mode major-mode))
     (let ((inhibit-read-only t))
       (set-buffer (get-buffer-create preview-buffer))
       (widen)