From 6998c3739fdc7f4d27fcdccfdd913467a6da4dc1 Mon Sep 17 00:00:00 2001 From: tomo Date: Thu, 10 Feb 2000 10:50:26 +0000 Subject: [PATCH] (mime-display-message): Use `major-mode' of current-buffer as default value of `original-major-mode'; don't use `mime-entity-header-buffer'. --- mime-view.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mime-view.el b/mime-view.el index 83afc8c..005dfde 100644 --- a/mime-view.el +++ b/mime-view.el @@ -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) -- 1.7.10.4