emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug-reference-prog-mode slows down CC Mode's scrolling by ~7%


From: Stefan Monnier
Subject: Re: bug-reference-prog-mode slows down CC Mode's scrolling by ~7%
Date: Sat, 04 Sep 2021 14:40:16 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> Do you have some Lisp to show that invisible text isn't fontified by
> jit-lock?

    src/emacs -Q lisp/subr.el -f outline-minor-mode --eval '(hide-sublevels 1)'

then go to the line that says "subr.el ends here" and do

    M-: (get-text-property (- (point) 10) 'fontified) RET

and it will probably say nil.


        Stefan


PS: My own config enables `outline-minor-mode` and calls
`hide-sublevels` in a similar way, so I'd notice the performance
difference if the whole buffer were fontified ;-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]