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: Mark Elston
Subject: Re: Setting file-local list variables
Date: Wed, 21 May 2008 12:21:29 -0500
User-agent: Xnews/5.04.25


* Joel J. Adamson wrote (on 5/21/2008 6:36 AM):
> 
> ...
> 
> 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:
> 

Yeah, it didn't work for me either.

> @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 (!)?

I tried that, too.  It didn't work either.

I wonder if this is an AucTeX thing.  The AucTeX manual says that this variable 
controls
the verbatim-like environments.  However, in the help for the variable it says:



        LaTeX-verbatim-environments is a variable defined in `latex.el'.
        Its value is 
        '("verbatim" "verbatim*" "CodeListing" "OldCodeListing" 
"NewCodeListing")

        Local in buffer AddingStateMachineToClass.tex; global value is 
        ("verbatim" "verbatim*")

        Documentation:
        Verbatim environments.

        Programs should not use this variable directly but the function
        `LaTeX-verbatim-environments' which returns a value including
        buffer-local keyword additions via
        `LaTeX-verbatim-environments-local' as well.


I don't know if this means that setting the variables is the wrong way to go.

BTW, I have also tried setting 'LaTeX-verbatim-environments-local' both as a 
list
and a quoted list as well.  That, too, doesn't work.

Mark


reply via email to

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