But I see your point and I'll check if forcing the whole buffer to be fontified before folding leads to bearable execution times.
If it is too slow, here's another possible idea: explicitly handle precisely and only the part of fontification that is needed for the other features to work. That might be substantially faster. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel