emacs-devel
[Top][All Lists]
Advanced

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

Re: font-lock-fontify-block


From: Stefan Monnier
Subject: Re: font-lock-fontify-block
Date: Fri, 12 Mar 2021 09:58:07 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> Thank you.  That was my impression, too, but I wasn't 100% sure.
> Given this, my updated suggestion is:
>
> (defun font-lock-update (&optional arg)
>   (interactive "P")
>   (save-mark-and-excursion
>     (if (not arg)
>       (font-lock-fontify-region (point-min) (point-max))
>       (font-lock-unfontify-region (point-min) (point-max))
>       (font-lock-mode 'toggle))))
> (global-set-key (kbd "C-x x f") 'font-lock-update)

No, if you start with that you will end with what we have.


        Stefan




reply via email to

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