1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-22 07:09:54 +00:00

Tree-sitter use with-silent-modifications like jit-lock (bug#64321)

* lisp/treesit.el (treesit--font-lock-notifier): Use
with-silent-modifications when marking modified text to be fontified
by jit-lock.  This is what jit-lock itself does.
This commit is contained in:
Yuan Fu 2023-06-27 20:58:34 -07:00
parent 11cead0d73
commit 2c90ade09a
No known key found for this signature in database
GPG Key ID: 56E19BC57664A442

View File

@ -1072,7 +1072,8 @@ parser notifying of the change."
(when treesit--font-lock-verbose
(message "Notifier received range: %s-%s"
(car range) (cdr range)))
(put-text-property (car range) (cdr range) 'fontified nil))))
(with-silent-modifications
(put-text-property (car range) (cdr range) 'fontified nil)))))
;;; Indent