help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting file-local list variables


From: Joel J. Adamson
Subject: Re: Setting file-local list variables
Date: Wed, 21 May 2008 09:36:59 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Mark Elston <m.elston@RemoveAdvantest-ardRemove.com> writes:

> (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:

[...]

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

Have you tried quoting?  I still get the same thing, when I try the
following document:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
\documentclass{article}
\begin{document}

\begin{verbatim}
Kiss this!
\sin(x)

\end{verbatim}
\begin{equation}
  \label{eq:1}
  \sin(x)
\end{equation}

\end{document}

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

@someone-who-knows: Does this just come up when a new variable is
introduced in a local variables list?

@OP: If so, what's wrong with marking the variables as safe and applying
them in the future (!)?

Joel
-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109
Public key: http://pgp.mit.edu
http://www.unc.edu/~adamsonj




reply via email to

[Prev in Thread] Current Thread [Next in Thread]