GNU bug report logs - #66666
30.0.50; Feedback on treesit-font-lock-level

Previous Next

Package: emacs;

Reported by: Augusto Stoffel <arstoffel <at> gmail.com>

Date: Sat, 21 Oct 2023 14:17:01 UTC

Severity: wishlist

Found in version 30.0.50

To reply to this bug, email your comments to 66666 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


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):

From: Augusto Stoffel <arstoffel <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; Feedback on treesit-font-lock-level
Date: Sat, 21 Oct 2023 16:16:11 +0200
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):

From: Yuan Fu <casouri <at> gmail.com>
To: Augusto Stoffel <arstoffel <at> gmail.com>
Cc: 66666 <at> debbugs.gnu.org
Subject: Re: bug#66666: 30.0.50; Feedback on treesit-font-lock-level
Date: Sat, 21 Oct 2023 11:18:56 -0700

> 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):

From: Vivien Kraus <vivien <at> planete-kraus.eu>
To: 66666 <at> debbugs.gnu.org
Subject: control message for bug #66666
Date: Sun, 22 Oct 2023 22:47:54 +0200
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.