]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't try to eval local variables in Gnus article
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 19 Jun 2017 02:10:22 +0000 (02:10 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 19 Jun 2017 02:10:22 +0000 (02:10 +0000)
* lisp/gnus/mm-view.el (mm-display-inline-fontify): Disable local vars.

lisp/gnus/mm-view.el

index dd64bfed60a1a4d7ef753a5da452c965a20ff848..4276f9e9a431e2f6d1e7f2f74f7e1f6118fe6f23 100644 (file)
@@ -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.