I love JIT font-lock and depend on it for proper operation of HAPE, but stealth-fontification is pointless when working on a 2MB file that's heavily fontified but probably much less than 1% of it will be looked at during any one editing session.
Perhaps stealth fontification should be turned off for files larger than a certain size. Or perhaps with Eli's revised parameters it is so harmless that you may as well have it enabled for these files too. After all, suppose you visit the file and then spend half an hour on the phone. It could have fontified the whole thing for you in that much time--so why not do so? Maybe it should only try to stealth-fontify some amount of text before and after the current point (e.g., 100 lines before and after; if the user moves, then just give up on the old position...), That might be a good idea, but 100 lines is clearly too little. 500 or 1000 might be better. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel