From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Initial fontification in sh-mode with tree-sittter Date: Mon, 31 Oct 2022 23:38:25 -0400 Message-ID: References: <48F9C464-0F5F-4BF9-A27F-92F4F34FF0A8@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7371"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: =?windows-1252?Q?Jo=E3o?= Paulo Labegalini de Carvalho , emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 01 04:39:22 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1opi7U-0001jc-QV for ged-emacs-devel@m.gmane-mx.org; Tue, 01 Nov 2022 04:39:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opi6l-0004au-1N; Mon, 31 Oct 2022 23:38:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opi6i-0004aX-RX for emacs-devel@gnu.org; Mon, 31 Oct 2022 23:38:32 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opi6h-0005xU-15 for emacs-devel@gnu.org; Mon, 31 Oct 2022 23:38:32 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 9E908807CB; Mon, 31 Oct 2022 23:38:28 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 1CFCF805EE; Mon, 31 Oct 2022 23:38:27 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1667273907; bh=05FL/Hsve/XFEsh8Q2np55jILmlzgOLtq1Wh4BROvM8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=bD2Bsro9DDWq38GZ5kHLi1/VIFllJ+8XP9J44P6YUd5O9/YkHCJA3xHG18oBtHPX6 ndXlarr4026LnMxNhs+xazC4HXG3cC7z458O8N8wSw2WcXBLwyKMpperUsDoCo0jqf l0FZmHa0LVQYR9tvU1/uD36IV0iagHtz5CVbqBPVkzce1eUH7sYTuz2GHAqhSUUI8o LQv0juSvfffTB2EQllXQE/pgzif9apVSIlbfZEAvkLoQTEw8GOP8c760sgO80jNBKB EIYshFuv4ePtg08I9yuCMzAK1uoK9o59f4YVLiug+sXPwCsX7wRfUGxSV2zKyRN0+k /GE9cRvJqOcSQ== Original-Received: from pastel (65-110-220-202.cpe.pppoe.ca [65.110.220.202]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id DBC62120F20; Mon, 31 Oct 2022 23:38:26 -0400 (EDT) In-Reply-To: (Yuan Fu's message of "Mon, 31 Oct 2022 17:33:51 -0700") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:298903 Archived-At: > You probably don=E2=80=99t need to set enabled features, because you can = set > maximum-decoration to a high value and specify what to disable. > And maximum-decoration is infinity by default. I thought it would be nice to let people choose an approximate baseline by setting their "decoration level" and then tweak things by *either* adding or removing elements from it. E.g. I generally like my fontification to be quite subdued so I'd like choose a low baseline decoration level, but I might want to add one or two things to it in some modes. Stefan