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

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 23 Nov 2013 02:49:02 +0000

Your bug report

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

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
15936: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15936
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#15936: latex-noindent-environments: should be declared as a safe local variable
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Fri, 22 Nov 2013 21:47:59 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 24.4

Thanks; applied.

Subject: latex-noindent-environments: should be declared as a safe local variable
From: Ivan Shmakov <[email-masked]>
To: [email-masked]
Date: Wed, 20 Nov 2013 19:39:05 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

	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