A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://lists.gnu.org/archive/html/emacs-devel/2022-11/msg00013.html below:

Re: Initial fontification in sh-mode with tree-sittter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] From: Yuan Fu Subject: Re: Initial fontification in sh-mode with tree-sittter Date: Tue, 1 Nov 2022 01:35:25 -0700
> On Nov 1, 2022, at 12:13 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> 
>> From: Yuan Fu <casouri@gmail.com>
>> Date: Mon, 31 Oct 2022 17:25:01 -0700
>> Cc: João Paulo Labegalini de Carvalho <jaopaulolc@gmail.com>, 
>> emacs-devel@gnu.org
>> 
>>> Curiously, as soon as I press C-l, the text gets fontified with the
>>> string face.
>> 
>> I think that’s just jit-lock & redisplay doing funny stuff. If you set 
>> treesit--font-lock-verbose to t, it should log that appropriate faces are 
>> applied when you insert the quote.
> 
> Which means you don't play by redisplay's rules in this case.  When
> Lisp code changes faces, it should remove the 'fontified' property
> from the text where faces changed.  Does your code do that?

I thought 'fontified should be set to t, and it is done by jit-lock? I also 
thought changing the ‘face property should be enough to trigger redisplay, is 
that true?

Yuan


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4