Re: Problem with original Emacs LaTeX font lock scheme

August Karlstrom <[email protected]> Tue, 08 Mar 2005 19:37:55 +0100
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
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. 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.

-- 
August