Re: Fontification Problems with alltt
Ralf Angeli <[email protected]> Mon, 07 Mar 2005 18:40:12 +0100
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Message-ID | <[email protected]> |
* Jan T. Kim (2005-03-07) writes: > Ralf Angeli <angeli <at> iwi.uni-sb.de> writes: > >> * Jan T. Kim (2005-03-06) writes: [fontification bleeding out of alltt environment] >> There was a similar report a few days ago. It is likely Emacs not >> updating the font locking correctly. Do you still see the problem >> with a development version of Emacs? > > I've just installed emacs-21.4a, dated 17-Feb-2005 on > http://ftp.gnu.org/pub/gnu/emacs/ , hope that's sufficiently "bleeding > edge"... There haven't been any changes to the font locking code in this release compared to Emacs 21.3. So I'd say no. It would have to be a CVS snapshot or checkout. But of course installing and using such a snapshot is not everybody's cup of tea. > Anyway, after editing the file in question with that a little, I haven't > seen the effect again, but as I don't have any way to reliably trigger > it, I don't know how much this means. > > It's a bit strange, though, that with auctex-11.55, installed from the > source, my alltt stuff is fontified in black (default colour), whereas > with emacs-21.3, and auctex-11.55-1 installed from Debian packages, it's > fontified in brown (SaddleBrown, as far as I can tell from M-x > customize-face font-latex-verbatim-face). Therefore, I'm not certain > whether I would even notice the problem, as it has manifested itself by > painting everything *outside* the alltt environments in brown. If an alltt environment is not fontified in brown you either forgot to activate parsing or something else went wrong. In the latter case you will probably find some hint in the *Messages* buffer. It is probably more reliable to check for correct fontification with the verbatim environment instead of the alltt environment because the former does not require an additional AUCTeX style file ot be loaded. In case the verbatim environment is fontified but not the alltt environment it is likely you forgot to enable parsing as mentioned above. -- Ralf