]> git.eshelyaron.com Git - emacs.git/commit
* lisp/hi-lock.el (hi-lock-revert-buffer-rehighlight): Improve (bug#57534).
authorJuri Linkov <juri@linkov.net>
Thu, 27 Jun 2024 17:05:58 +0000 (20:05 +0300)
committerEshel Yaron <me@eshelyaron.com>
Fri, 28 Jun 2024 06:12:34 +0000 (08:12 +0200)
commitb6b8f8cc4846d578b1513b55c24b48bac6789762
treed06e8655715a56bf9e7e8bb37c07008d6d44a3bc
parentf80a420122080e8a32048bd6d6ec624607a10bf0
* lisp/hi-lock.el (hi-lock-revert-buffer-rehighlight): Improve (bug#57534).

Instead of detecting invalidated overlays, use the same condition
as in 'hi-lock-set-pattern', and always re-highlight overlays,
because even when overlays stays on their original positions,
there is a need to highlight more matches possibly added after revert.

(cherry picked from commit 280c91782afa0c6ae667785b806da58e6be102ae)
lisp/hi-lock.el