Re: Bug in syntax highlighting

Ralf Angeli <[email protected]> Sat, 26 Mar 2005 19:09:44 +0100
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
* Dennis W. (2005-03-26) writes:

> the following tex file causes problems with AUCTeX when syntax
> highlighting is turned on:
>
> ===begin file
> \[
> \label{gurke}
>
> [peter]
> \]
> ===end file
>
> actually, this file alone works well, but if I now enter \end or
> \begin right below the line containing \label, xemacs hangs as soon
> as the final letter "d" resp. "n" is typed in.

You don't even need the math environment.  Something like

\begi
[foo]

and typing the "n" of \begin suffices.

AFAICS this is an infinite loop triggered by point not advancing
inside of the function `font-latex-match-command-with-arguments'.  I
already have a way to prevent the infloop from appearing but have to
check if it is the right way to fix it.

> Typing C-c on the
> command line where xemacs was invoked brings it back to life.

Why don't you just type `C-g'?

-- 
Ralf