Re: Problem with original Emacs LaTeX font lock scheme

Ralf Angeli <[email protected]> Tue, 08 Mar 2005 17:14:55 +0100
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
* August Karlstrom (2005-03-08) writes:

> On tis, 2005-03-08 at 09:51 +0100, Ralf Angeli wrote:
>> * August Karlstrom (2005-03-08) writes:
>> 
>> > I have set `TeX-install-font-lock' to the symbol `tex-font-setup', but
>> > only strings and comments are fontified. Both `global-font-lock-mode'
>> > and `font-lock-maximum-decoration' is `t'. Any clues?
[...]
>> No problem here with Emacs 21.3 or CVS Emacs.  Do you get any error
>> messages in the *Messages* buffer?  To make these more visible you
>> could start Emacs with --debug-init and/or put
>> `(setq debug-on-error t)' as the first line into your init file.
>> 
> Yes, here is the contents of the *Messages* buffer after I have issued
> `emacs --debug-init test.tex &'.
[...]
> Error during redisplay: (error No match 3 in highlight (3 font-lock-
> function-name-face keep)) [2 times]

It looks like there is something is this buffer which matches the
following regular expression but does not have a match in the third
group (at least this is how I understand the error message).

"\\\\\\(begin\\|chapter\\|end\\|new\\(?:command\\|environment\\|theorem\\)\\|par\\(?:agraph\\|t\\)\\|renewcommand\\|s\\(?:ection\\|ub\\(?:paragraph\\|s\\(?:ection\\|ub\\(?:paragraph\\|section\\)\\)\\)\\)\\|title\\)\\*? *\\(\\[[^]]*\\] *\\)*{\\(\\(?:[^{}\\]+\\|\\\\.\\|{[^}]*}\\)+\\)"

Could you please send me the file where this happens?  In case this is
not possible, you can try to reduce the file to a simple test case
with the help of the regular expression above.  As you can see it
matches mostly sectioning commands, like \chapter, \section,
\paragraph etc. as well as stuff like \begin, \end, \newcommand etc.

-- 
Ralf