Subject: bug#15936: latex-noindent-environments: should be declared as a safe local variable

From: Ivan Shmakov <[email-masked]>
Date: Wed, 20 Nov 2013 19:39:05 +0000

I know of no reason latex-noindent-environments should be
	considered “unsafe.”  Given that tex-verbatim-environments is
	already declared as “safe,” I therefore suggest the following
	trivial patch.

--- tex-mode.el.~1~
+++ tex-mode.el	2013-11-20 19:32:29.000000000 +0000
@@ -2680,6 +2680,8 @@
 (defvar tex-indent-item tex-indent-basic)
 (defvar tex-indent-item-re "\\\\\\(bib\\)?item\\>")
 (defvar latex-noindent-environments '("document"))
+(put 'latex-noindent-environments 'safe-local-variable
+     (lambda (x) (null (delq t (mapcar 'stringp x)))))
 
 (defvar tex-latex-indent-syntax-table
   (let ((st (make-syntax-table tex-mode-syntax-table)))

-- 
FSF associate member #7257