Re: Problem with original Emacs LaTeX font lock scheme
Ralf Angeli <[email protected]> Tue, 08 Mar 2005 20:02:15 +0100
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Message-ID | <[email protected]> |
* August Karlstrom (2005-03-08) writes:
> On tis, 2005-03-08 at 18:55 +0100, Ralf Angeli wrote:
>> 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?
>
> Unfortunately I get the same result even when I follow your
> instructions.
I'm terribly sorry, but then I am at my wits' end. I don't know what
causes the problem for you. Can somebody else on the list reproduce
this? Is your Emacs patched somehow?
> In the buffer LaTeX commands are sometimes temporarily
> fontified (in a kind of unpredictable way) when it's being modified. For
> instance, if i delete the `n' in `\begin{document}' then `\begi' gets
> fontified (in `font-lock-keyword-face'), but if I then run `font-lock-
> fontify-buffer' the fontification is cleared. Comments and inline math
> is correctly fontified.
Comments and inline math are highlighted by using the syntax of their
start and end tags (" and $). Most of the other stuff is highlighted
by using regular expressions. It seems that the syntax-based
highlighting can still be done even if the regexp-based highlighting
fails.
--
Ralf