emacs-devel
[Top][All Lists]
Advanced

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

Re: font-lock-fontify-block


From: Gregory Heytings
Subject: Re: font-lock-fontify-block
Date: Fri, 12 Mar 2021 15:20:05 +0000


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.


Sorry, I don't understand what you mean.



reply via email to

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