Re: Problem with original Emacs LaTeX font lock scheme
Ralf Angeli <[email protected]> Tue, 08 Mar 2005 18:55:37 +0100
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Message-ID | <[email protected]> |
* August Karlstrom (2005-03-08) writes:
>> > 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.
>
> The file test.tex contains
>
> \documentclass[a4paper,11pt]{article}
> \usepackage[utf8]{inputenc}
> \usepackage[T1]{fontenc}
> \usepackage[swedish]{babel}
> \usepackage{nopageno}
>
> \begin{document}
>
> Some text\ldots{}
>
> \end{document}
Hm, this is working fine here with Emacs 21.3.
Do you get the same error if you start Emacs with
emacs -q -no-site-file
(don't specify a file on the command line), copy the following lines
into the *scratch* buffer,
(require 'tex-site)
(setq TeX-install-font-lock 'tex-font-setup)
(global-font-lock-mode 1)
type `M-x eval-buffer RET' and then load the LaTeX file?
--
Ralf