Re: context coloring leaks out of verbatim environment

Ralf Angeli <[email protected]>
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
* Frank Küster (2005-02-18) writes:

> Ulrich Scholz <[email protected]> wrote:
>
>> OK, open the following in Emacs; bring cursor in the line with
>> \end{verbatim}; press return; press delete.  Then the context coloring leaks
>> out of the verbatim environment.
>
> I have a related bug report.

Does that mean you can confirm the problem Ulrich reported?

> Just look at 
>
> http://www.kuesterei.ch/auctex-colors2.gif
>
> The third line is colored as if it were commented. In fact it was
> previously commented, but either I switched comments with the line
> above, or I copied the line, added the "my", and uncommented it.

Using the following file as an example and doing the procedure to
start Emacs described earlier I can see this upon commenting and
uncommenting the second \usepackage line several times.  Then
highlighting can get stuck.  But this is nothing an `M-x
font-lock-fontify-buffer RET' should not be able to fix.  And in CVS
Emacs the problem seems to be fixed.

\documentclass{article}
% \usepackage[separate]{ochem}
\usepackage[separate]{myochem}
% \usepackage{ochem}
\usepackage{mathpazo,helvet}
\begin{document}
\end{document}

-- 
Ralf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.