GNU bug report logs -
#58755
29.0.50; Font locking not enabling for ts-mode
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 58755 in the body.
You can then email your comments to 58755 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58755
; Package
emacs
.
(Mon, 24 Oct 2022 06:44:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Theodor Thornhill <theo <at> thornhill.no>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 24 Oct 2022 06:44:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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
[0001-Add-in-check-for-font-lock-defaults.patch (text/x-diff, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58755
; Package
emacs
.
(Mon, 24 Oct 2022 07:17:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 58755 <at> debbugs.gnu.org (full text, mbox):
> 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.
Yuan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58755
; Package
emacs
.
(Mon, 24 Oct 2022 07:30:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 58755 <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58755
; Package
emacs
.
(Mon, 24 Oct 2022 20:17:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 58755 <at> debbugs.gnu.org (full text, mbox):
> On Oct 24, 2022, at 12:29 AM, Theodor Thornhill <theo <at> thornhill.no> wrote:
>
> 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
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
bug marked as fixed in version 29.1, send any further explanations to
58755 <at> debbugs.gnu.org and Theodor Thornhill <theo <at> thornhill.no>
Request was from
Yuan Fu <casouri <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Thu, 27 Oct 2022 23:42:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 25 Nov 2022 12:24:10 GMT)
Full text and
rfc822 format available.
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.