From c27924b79474ff7be14cc8abff0cc7ea0c3bd609 Mon Sep 17 00:00:00 2001 From: Ivan Shmakov Date: Fri, 22 Nov 2013 18:46:20 -0800 Subject: [PATCH] * textmodes/tex-mode.el (latex-noindent-environments): Add safe-local-variable property. Fixes: debbugs:15936 --- lisp/ChangeLog | 5 +++++ lisp/textmodes/tex-mode.el | 2 ++ 2 files changed, 7 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 30b62f0880f..2321854e545 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-11-23 Ivan Shmakov (tiny change) + + * textmodes/tex-mode.el (latex-noindent-environments): + Add safe-local-variable property. (Bug#15936) + 2013-11-23 Glenn Morris * textmodes/enriched.el (enriched-mode): Doc fix. diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 7b16262233d..c01d7784309 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -2680,6 +2680,8 @@ Runs the shell command defined by `tex-show-queue-command'." (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))) -- 2.39.2