Re: Fontification Problems with alltt
Jan T. Kim <[email protected]> Mon, 7 Mar 2005 17:03:40 +0000 (UTC)
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Message-ID | <[email protected]> |
Ralf Angeli <angeli <at> iwi.uni-sb.de> writes: > > * Jan T. Kim (2005-03-06) writes: > > > while writing a LaTeX file with frequently interspersed code > > fragments typeset in the alltt environment, I experience that > > AucTeX has a tendency to somehow get confused about whether it's > > "inside" or "outside" an alltt environment. The visual effect of > > this is that everything is fontified as though it was in alltt, > > except the portions inside an alltt environment. > > > > Switching font-lock-mode off and on again fixes the problem, but > > it eventually returns. > [...] > > This happens on emacs-21.3-12, running on a Fedora core 2 installation, > > but I've also seen it on my notebook which is a recently installed > > Debian system. > > > > Is this a known problem, is there anything that can be done about this? > > 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"... 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. I don't know if this variation of fontification colour schemes is due to the version of emacs, or perhaps caused by alterations made by the maintainers of the Debian package (and the same change made by the RPM maintainer too). Best regards, Jan