all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ivan Shmakov <ivan@siamics.net>
To: 15936@debbugs.gnu.org
Subject: bug#15936: latex-noindent-environments: should be declared as a safe local variable
Date: Wed, 20 Nov 2013 19:39:05 +0000	[thread overview]
Message-ID: <87y54iomnr.fsf@violet.siamics.net> (raw)

	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





             reply	other threads:[~2013-11-20 19:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-20 19:39 Ivan Shmakov [this message]
2013-11-23  2:47 ` bug#15936: latex-noindent-environments: should be declared as a safe local variable Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y54iomnr.fsf@violet.siamics.net \
    --to=ivan@siamics.net \
    --cc=15936@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.