From dbe3e416af5d845dc774341eb66971ab1a72983b Mon Sep 17 00:00:00 2001 From: Katsumi Yamaoka Date: Mon, 19 Jun 2017 02:10:22 +0000 Subject: [PATCH] Don't try to eval local variables in Gnus article * lisp/gnus/mm-view.el (mm-display-inline-fontify): Disable local vars. --- lisp/gnus/mm-view.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/gnus/mm-view.el b/lisp/gnus/mm-view.el index dd64bfed60a..4276f9e9a43 100644 --- a/lisp/gnus/mm-view.el +++ b/lisp/gnus/mm-view.el @@ -488,7 +488,8 @@ If MODE is not set, try to find mode automatically." (funcall mode)) (let ((auto-mode-alist (delq (rassq 'doc-view-mode-maybe auto-mode-alist) - (copy-sequence auto-mode-alist)))) + (copy-sequence auto-mode-alist))) + (local-enable-local-variables nil)) (set-auto-mode))) ;; The mode function might have already turned on font-lock. ;; Do not fontify if the guess mode is fundamental. -- 2.39.2