]> git.eshelyaron.com Git - emacs.git/commit
* lisp/hi-lock.el: More fixes for revert-buffer (bug#57534)
authorJuri Linkov <juri@linkov.net>
Thu, 27 Jun 2024 18:08:28 +0000 (21:08 +0300)
committerEshel Yaron <me@eshelyaron.com>
Fri, 28 Jun 2024 06:12:36 +0000 (08:12 +0200)
commit2a733f97cf15293decdddea948ed3ac938cd6fa9
tree8cc5244f6511dd7ef3b503a69c6cf24a91c0c521
parentb6b8f8cc4846d578b1513b55c24b48bac6789762
* lisp/hi-lock.el: More fixes for revert-buffer (bug#57534)

(hi-lock-set-pattern): Put the text property 'regexp' on the lighter string.
(hi-lock-revert-buffer-rehighlight): Get the real regexp from the
text property 'regexp'.  This fixes the case when the original
regexp gets lost after e.g. 'M-s . M-s h r'.

(cherry picked from commit 6d94090cadcff1b251457c2d82b287f4beb5a93d)
lisp/hi-lock.el