* bug#15936: latex-noindent-environments: should be declared as a safe local variable
@ 2013-11-20 19:39 Ivan Shmakov
2013-11-23 2:47 ` Glenn Morris
0 siblings, 1 reply; 2+ messages in thread
From: Ivan Shmakov @ 2013-11-20 19:39 UTC (permalink / raw
To: 15936
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-23 2:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-20 19:39 bug#15936: latex-noindent-environments: should be declared as a safe local variable Ivan Shmakov
2013-11-23 2:47 ` Glenn Morris
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.