bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#66732: tree-sitter fontification doesn't update multi-line syntax re


From: Stefan Monnier
Subject: bug#66732: tree-sitter fontification doesn't update multi-line syntax reliably
Date: Wed, 20 Dec 2023 15:50:06 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

> This patch also changes the visible behavior, fixing the problem that I'm
> seeing:
>
> diff --git a/lisp/jit-lock.el b/lisp/jit-lock.el
> index 452cbd1ca51..43db2d31856 100644
> --- a/lisp/jit-lock.el
> +++ b/lisp/jit-lock.el
> @@ -499,6 +499,7 @@ jit-lock-force-redisplay
>           (setq start (point-min) end (max start end)))
>         ;; Don't cause refontification (it's already been done), but just do
>         ;; some random buffer change, so as to force redisplay.
> +       (put-text-property start end 'fontified nil)
>         (put-text-property start end 'fontified t)))))
>  
>  ;;; Stealth fontification.

Looks good to me (and makes sense after reading the code of
`put-text-property`).


        Stefan






reply via email to

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