all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mark Elston <m.elston@RemoveAdvantest-ardRemove.com>
To: help-gnu-emacs@gnu.org
Subject: Setting file-local list variables
Date: Tue, 20 May 2008 14:30:02 -0500	[thread overview]
Message-ID: <Xns9AA47EE3BC0E5melstonadvantestardc@216.168.3.44> (raw)

(I sent this to the AucTeX mailing list as well but since this is
possibly more an Emacs issue I thought I would send it here as well.)

I have been trying to set a file local variable for a LaTeX file
I have been working on and it just doesn't seem to stick.  In
particular I am trying to set LaTeX-verbatim-environments.  I am
using the fancyvrb package and have developed some specific verbatim
environments and want AucTeX to deal with them appropriately.  These
environments are specific to the file I am working on and, so, I don't
want to customize AucTeX to *always* recognize them since they won't
appear in any other files.

However, when I put the following in my .tex file:

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% LaTeX-verbatim-environments: ("verbatim" "verbatim*" "CodeListing" 
"OldCodeListing" "NewCodeListing")
%%% End:

I get a warning when loading the file that setting the variable may
not be safe.  I hit 'y' to apply the local variables list and the file
is loaded.  However, even though I can look at the variable and see that
it is set appropriately, AucTeX doesn't handle these environments as
verbatim environments.

If I customize the variable then it works fine.

How do I set this variable so that it applies to the file?

Mark


             reply	other threads:[~2008-05-20 19:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-20 19:30 Mark Elston [this message]
2008-05-21 13:36 ` Setting file-local list variables Joel J. Adamson
  -- strict thread matches above, loose matches on Subject: below --
2008-05-21 17:21 Mark Elston
2008-05-22 13:01 ` Joel J. Adamson
     [not found] ` <mailman.12007.1211462109.18990.help-gnu-emacs@gnu.org>
2008-05-22 16:21   ` Mark Elston

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=Xns9AA47EE3BC0E5melstonadvantestardc@216.168.3.44 \
    --to=m.elston@removeadvantest-ardremove.com \
    --cc=help-gnu-emacs@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.