bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] 2008-02-02; Highlighting verbatim environments gets con


From: Ralf Angeli
Subject: Re: [Bug-AUCTeX] 2008-02-02; Highlighting verbatim environments gets confused
Date: Sat, 02 Feb 2008 20:15:21 +0100

* Uwe Siart (2008-02-02) writes:

> using AUCTeX 2008-02-02 I found a situation where the highlighting of verbatim
> environments gets confused.
>
> In some documents I use a user-defined verbatim environment named {Enter}.
> Therefore I've added "Enter" to 'LaTeX-verbatim-environments'. AUCTeX 
> 2008-02-02
> starts with verbatim highlighting from the particular line in the document
> preamble where the environment "Enter" is defined by \newenvironment{Enter}.
>
> The verbatim highlighting lasts up to the first instance of \begin{Enter}.
> Thenceforth, everything between \end{Enter} and \begin{Enter} is highlighted 
> as
> if it was verbatim.

I cannot reproduce the problem with the following file and loading Emacs
with `emacs -Q -l auctex file.tex'.

--8<---------------cut here---------------start------------->8---
\documentclass{article}
\newenvironment{Enter}{foo}{bar}
\begin{document}
foo
\begin{Enter}
  bar
\end{Enter}
baz
\end{document}

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% eval: (eval-after-load "latex" '(progn (add-to-list 
'LaTeX-verbatim-environments "Enter") (normal-mode)))
%%% End: 
--8<---------------cut here---------------end--------------->8---

Type `y' when Emacs asks the first time if the local variables should be
applied and `n' the second time.

Do you get the same erroneous behavior as you described before with the
test case above?  If not, please provide a full minimal example.

-- 
Ralf




reply via email to

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