GNU bug report logs - #58755
29.0.50; Font locking not enabling for ts-mode

Previous Next

Package: emacs;

Reported by: Theodor Thornhill <theo <at> thornhill.no>

Date: Mon, 24 Oct 2022 06:44:02 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Theodor Thornhill <theo <at> thornhill.no>
To: Yuan Fu <casouri <at> gmail.com>
Cc: 58755 <at> debbugs.gnu.org
Subject: bug#58755: 29.0.50; Font locking not enabling for ts-mode
Date: Mon, 24 Oct 2022 09:29:28 +0200
Yuan Fu <casouri <at> 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 <at> 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




This bug report was last modified 2 years and 210 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.