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

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

bug#58755: 29.0.50; Font locking not enabling for ts-mode


From: Yuan Fu
Subject: bug#58755: 29.0.50; Font locking not enabling for ts-mode
Date: Mon, 24 Oct 2022 13:16:43 -0700


> On Oct 24, 2022, at 12:29 AM, Theodor Thornhill <theo@thornhill.no> wrote:
> 
> Yuan Fu <casouri@gmail.com> writes:
> 
>>> On Oct 23, 2022, at 11:43 PM, Theodor Thornhill via Bug reports for GNU 
>>> Emacs, the Swiss army knife of text editors <bug-gnu-emacs@gnu.org> wrote:
>>> 
>>> Hi Yuan!
>>> 
>>> It seems we cannot really enable font-lock without setting the
>>> font-lock-defaults to some non-nil value.
>>> 
>>> I'm not really sure why the 'treesit-font-lock-enable' isn't sufficient,
>>> but here's a patch that at least makes ts-mode usable again :)
>>> 
>>> Thanks,
>>> Theo
>> 
>> Hey Theo, sorry for the trouble… Yeah font-lock-mode looks at 
>> font-lock-default’s value when turning on and won’t do anything if it’s 
>> value is nil. I thought we are going to install a new scheme soon so I 
>> didn’t change the code. I’ll fix ts-mode and push.
>> 
> 
> No worries.  Did we decide upon something there?
> 
> Theo

No, not yet. I still think a central variable has more merits and less problems 
than minor modes as they are now. We’ll need discussion and more good ideas :-)

Yuan






reply via email to

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