* 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
* bug#15936: latex-noindent-environments: should be declared as a safe local variable
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
0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2013-11-23 2:47 UTC (permalink / raw)
To: 15936-done
Version: 24.4
Thanks; applied.
^ 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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).