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: Fri, 28 Oct 2022 14:12:48 -0400 Message-ID: References: <48F9C464-0F5F-4BF9-A27F-92F4F34FF0A8@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20406"; 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@gnu.org Fri Oct 28 20:13:15 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 1ooTr0-0005AN-Pw for ged-emacs-devel@m.gmane-mx.org; Fri, 28 Oct 2022 20:13:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooTqi-0003sJ-D7; Fri, 28 Oct 2022 14:12:56 -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 1ooTqg-0003r8-Ed for emacs-devel@gnu.org; Fri, 28 Oct 2022 14:12:54 -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 1ooTqe-0001SX-Qw for emacs-devel@gnu.org; Fri, 28 Oct 2022 14:12:54 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 32006440EE8; Fri, 28 Oct 2022 14:12:51 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id D9CF5440BF0; Fri, 28 Oct 2022 14:12:49 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1666980769; bh=o+ppVTwNmv1+QEwcUb0Aj8cPCR16GVbIZZpHtp6FZFw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=oeK6FGJZC7YX79hrRou7a0Fl306sSZ7TKanoUmh20UUqgEeDMAKyiSmthxbQwjjlw 7etIYWwOHtC2vvvvrJFO/LwrNv/VpYFB8zSUzriVh+ZzH1/YOaj7hqcwEndWUsoz8Y z+IbtInUTqDCBL1E9oXMePOGw2JOVIhrPaCiydJzGw0qSJgQs3AC6hGxcbp9I4qCOF AW52S8hi2Rhq8AR7VgDpD55cneD/UfbSQmVmVF4JWCRPX/tfQdSiwMc8+3tQymwiWi nMd+nDtYwhDvzDjFPnikGvrRBSgzPj0vbRk2Q47nN8EyUFGxdcDLHhu2UezSazqzWn WHMVQJic9ENgw== Original-Received: from pastel (65-110-220-202.cpe.pppoe.ca [65.110.220.202]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id B25DA1208E1; Fri, 28 Oct 2022 14:12:49 -0400 (EDT) In-Reply-To: <48F9C464-0F5F-4BF9-A27F-92F4F34FF0A8@gmail.com> (Yuan Fu's message of "Fri, 28 Oct 2022 10:45:05 -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@gnu.org Xref: news.gmane.io gmane.emacs.devel:298692 Archived-At: >> This way, users can set a vague global "level" preference as a good >> baseline, which they can more finely tune according to their own >> preference by controlling individual features for specific modes. > I should probably add some convenient functions user can use to add/remove > feature from that list, since its not a plain list, but rather a list > of list. I think this var should be provided by the major mode and not touched by users. Instead we should provide another config var for users where they can individually enable/disable specific features for specific major modes. Stefan