Don't try to eval local variables in Gnus article

* lisp/gnus/mm-view.el (mm-display-inline-fontify): Disable local vars.
This commit is contained in:
Katsumi Yamaoka 2017-06-19 02:10:22 +00:00
parent 1b75af59b3
commit dbe3e416af

View file

@ -488,7 +488,8 @@ If MODE is not set, try to find mode automatically."
(funcall mode)) (funcall mode))
(let ((auto-mode-alist (let ((auto-mode-alist
(delq (rassq 'doc-view-mode-maybe 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))) (set-auto-mode)))
;; The mode function might have already turned on font-lock. ;; The mode function might have already turned on font-lock.
;; Do not fontify if the guess mode is fundamental. ;; Do not fontify if the guess mode is fundamental.