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 11:01:41 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>>> (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.
> Sorry, I don't understand what you mean.

That its behavior is defined by its implementation.

E.g. I find the current behavior to be a bug when font-lock-mode is
disabled in an elisp-mode buffer and your code would be similarly buggy.


        Stefan




reply via email to

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