Re: font-latex extremely slow
Ralf Angeli <[email protected]> Mon, 21 Mar 2005 20:19:50 +0100
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Message-ID | <[email protected]> |
* Reiner Steib (2005-03-21) writes: > I'm editing a 250k LaTeX document. Once in a while, `font-latex' is > getting extremely slow. My impression is that it might be triggered > by jumping around in the file and doing some edition at various > places. [...] > As I don't know if modifications in my document or changes in > `font-latex' trigger the slow down, I would like to ask if someone > (maybe Ralf) has an idea which revisions of `font-latex' I should > compare. > > In other words: Is there a change which might be suspect to slow down > `font-latex-match-*' (especially > `font-latex-match-command-with-arguments') dramatically? Hm, I made a change in latex.el which could negatively impact fontification performance: 2005-03-09 Ralf Angeli <[email protected]> * tex.el (TeX-comment-prefix): New function. * latex.el (LaTeX-current-environment, LaTeX-find-matching-end) (LaTeX-find-matching-begin): Rather than using the start or end of a commented region as a boundary, look further for other commented regions with the same prefix possibly containing an environment start or end respectively. (LaTeX-mode-menu): An empty help string is useless and may lead to an empty tooltip. Maybe profiling the related LaTeX-* functions besides the font-latex-* function reveals the culprit? -- Ralf