GNU bug report logs -
#66666
30.0.50; Feedback on treesit-font-lock-level
Previous Next
To reply to this bug, email your comments to 66666 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
casouri <at> gmail.com, bug-gnu-emacs <at> gnu.org
:
bug#66666
; Package
emacs
.
(Sat, 21 Oct 2023 14:17:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Augusto Stoffel <arstoffel <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
casouri <at> gmail.com, bug-gnu-emacs <at> gnu.org
.
(Sat, 21 Oct 2023 14:17:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The docstring of treesit-font-lock-level says:
Level 1 usually contains only comments and definitions.
As a user of minimal fontification, I don't find this very appealing.
IMO, the lowest fontification level should allow distinguishing code
from non-code, and therefore fontify comments and strings, and nothing
else.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#66666
; Package
emacs
.
(Sat, 21 Oct 2023 18:20:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 66666 <at> debbugs.gnu.org (full text, mbox):
> On Oct 21, 2023, at 7:16 AM, Augusto Stoffel <arstoffel <at> gmail.com> wrote:
>
> The docstring of treesit-font-lock-level says:
>
> Level 1 usually contains only comments and definitions.
>
> As a user of minimal fontification, I don't find this very appealing.
> IMO, the lowest fontification level should allow distinguishing code
> from non-code, and therefore fontify comments and strings, and nothing
> else.
That’s a fair point, and I don’t have strong opinions of what minimal level of font-lock should include. The default value is derived from my observation of the (few) existing major modes that support font-lock levels.
Since this isn’t a technical issue but rather a subjective one, perhaps you can bring it up to emacs-devel and have a discussion there. If the consensus agrees with you, then we can change the default value.
If you just want to make it work for yourself, you can use treesit-font-lock-recompute-features to add/remove features you desire.
Yuan
Severity set to 'wishlist' from 'normal'
Request was from
Stefan Kangas <stefankangas <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Sun, 22 Oct 2023 19:43:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#66666
; Package
emacs
.
(Sun, 22 Oct 2023 20:49:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 66666 <at> debbugs.gnu.org (full text, mbox):
severity 66666 devilish
quit
This bug report was last modified 1 year and 236 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.