]> git.eshelyaron.com Git - emacs.git/commit
Rehighlight hi-lock patterns after reverting the buffer.
authorJuri Linkov <juri@linkov.net>
Wed, 5 Jun 2024 06:38:39 +0000 (09:38 +0300)
committerEshel Yaron <me@eshelyaron.com>
Wed, 5 Jun 2024 10:15:45 +0000 (12:15 +0200)
commit6edc252fcbb1cd5349046e5f40bf6aca27c47e43
tree5083caae5955d2ad04b46aa6413cd7e477974c06
parentcf1e588d674fbdd0dbb1f6eca99afa417801379b
Rehighlight hi-lock patterns after reverting the buffer.

* lisp/hi-lock.el (hi-lock-revert-buffer-rehighlight): New function.
(hi-lock-mode): Add hi-lock-revert-buffer-rehighlight to
revert-buffer-restore-functions, and remove after mode is disabled.
https://lists.gnu.org/archive/html/emacs-devel/2024-06/msg00044.html

(cherry picked from commit 870100a8b7172a5845369ec6a2c28c2b06b7eaee)
lisp/hi-lock.el