|
From: | Stefan Monnier |
Subject: | Re: master 2399541: Remove font-lock toggle from font-lock-update |
Date: | Wed, 24 Mar 2021 11:23:06 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> +(defun font-lock-update () > + "Refontify the accessible portion of the buffer. > +Unconditionally activate `font-lock-mode'." > + (interactive) > + (unless font-lock-mode (font-lock-mode 1)) > (save-excursion > + (font-lock-fontify-region (point-min) (point-max)))) I don't see which part of the code corresponds to "the accessible portion of". AFAICT this will forcefully fontify the whole buffer which takes quite a while on src/xdisp.c (for example). Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |