Re: tex-symb
Masayuki Ataka <[email protected]> Wed, 09 Mar 2005 09:14:08 +0900 (JST)
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Message-ID | <[email protected]> |
From: Ralf Angeli <[email protected]> Subject: Re: tex-symb Date: Tue, 08 Mar 2005 10:20:40 +0100 > >> Anyway, a main problem currently is that fontification of overlays > >> covering folded content may be wrong. The problem is explained at the > >> start of tex-fold.el and in the respective manual section. So it > >> would e.g. be nice to have a way to hook onto a jit-lock function and > >> do folding once this function has fontified the relevant parts of the > >> file. If we can achieve something like this, speed of the folding > >> algorithm will not be much of an issue because only parts which are > >> actually shown in the buffer have to be folded at one time. I don't > >> know if it is easily possible, though. And it doesn't cover the case > >> where font locking is disabled or does not use jit-lock. When I said `tex-symb is slow', I opend texbook.tex, which is available in CTAN, and I saw the bottom of the file (near L.28000). In ordinary use, tex-symb.el is not so slow ;) > > I'm not familiar with font-lock code, so jit-lock is hard road > > for me, either. But it is attractive for me not to check the > > speed of the folding algorithm. > > Well, you can already have lots of fun with something like this: > > (defadvice jit-lock-fontify-now (after TeX-jit-lock-fontify-now > activate) Thank you. It works fine. The speed of folding the symbol, even at the bottom of texbook.tex, is up. > Anyway, it is funny to see folding act like fontification, i.e. you > open a LaTeX file and the stuff will be folded right away. Hmm, I don't like this. Actually, I do not fontify when opening a LaTeX file ;) --- email: [email protected] Name:: Masayuki Ataka // (Japan)