From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vincenzo Pupillo Newsgroups: gmane.emacs.devel Subject: Re: Define treesit-font-lock-level as buffer local Date: Sat, 14 Dec 2024 12:14:02 +0100 Message-ID: <2528408.XAFRqVoOGU@fedora> References: <4929184.OV4Wx5bFTl@3-191.divsi.unimi.it> <867c8bk8c7.fsf@gnu.org> 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="17804"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii , Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 14 12:14:49 2024 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 1tMQ6j-0004Zd-IN for ged-emacs-devel@m.gmane-mx.org; Sat, 14 Dec 2024 12:14:49 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMQ63-0006JM-RO; Sat, 14 Dec 2024 06:14:07 -0500 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 1tMQ62-0006JB-Vv for emacs-devel@gnu.org; Sat, 14 Dec 2024 06:14:07 -0500 Original-Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMQ61-0005n4-Kh; Sat, 14 Dec 2024 06:14:06 -0500 Original-Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-43634b570c1so5946845e9.0; Sat, 14 Dec 2024 03:14:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734174843; x=1734779643; darn=gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JVdIw86T3TvMPbGcoDi9jwyPNHzQ5xL3kS0jopueGk0=; b=We4FuHlGizZ3qxu/f109R6r3Pk8NEDhyWc9hdL1Q6elkKKUViSz1+gweqvmHHxd38Y qibSr8HB7Fmc9sL1sVPp3VkWDkI7EMezHmTug993IzEeJOlI2t3U6ZRElO+Zdg8h/4Vi G0LWe5sjoDPOWoH+G53QN+jMgLAf/wTF/JUFkgZUNhIoh4Pg3lvJ2Zd2LygEVi+dg0wz WAWj28wv1N9Cq2RASZuPWcTcN2sEcHR+9YBs3c17C+AICWOnG7yfxZprCtEX+bocJXz4 EN7RYSCGz1lIKbly/v63ZBA+zREbuHHzGxcZ8a3K53rcfXjTqD0LpiJZBf9GVomcGZ01 EogA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734174843; x=1734779643; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JVdIw86T3TvMPbGcoDi9jwyPNHzQ5xL3kS0jopueGk0=; b=HFef76FH9KVuXQl84aPurbCvj/Aq+USMPn5vxu5my3x/uhm9TX09J1Hu/gNyqtPQem EN3pUxDr0iVnxk8kSAVEQoyPvpWjDE7y/h1JmD/YT/GZ3ruoykiEPoc4w14ZlZQSoKh/ TbbimA8N4+k9aMNnSgWrFt5qIP9DBtFHLBjGawBuCTUvm6UZAMUsvx+f/fbeT6kk1an2 gr/ZPoO2on7LlUMEwydkoiDklpV8gIpP8/FOLJmqCUbwwp/Wj1CX0hBZKts71G1AkUTZ qsnKbEtNA6HN/OL6tKactO8rTfcx296K7cQv7Rt+p3DWdq2X+yaUs07VrZ8/JRIVR/A8 Nm/A== X-Gm-Message-State: AOJu0Yx6U0RfpbgyIqNbwGYmJu4osWFYKshNcBjf2zv6FKMjdgi5QvHh 3A184TFwbpglKAKaqNZ/C35txXfSrX48EMCsUAToQfeDpIMiCiN3MEMdTA== X-Gm-Gg: ASbGncs6UntehJHjyRMkpFEfONu6vwztJYsgIR8USaZDBlm1OcBK9QLDYwketZieekA 2FbEitpBcEmsZuio6STxCVsGy//rtWFnbyjfc+5wf1WlNbPgTpBjvItZvp0M+9U0uDRGYz7VkmT mgJCJTWbfL9IcAb1IA+85BiyRpvZhScEfaoE7tN9KMxVJQApHayi6fTGxKd1XIsry+3UkMpjWA5 PkgH3sXeRaCh1/09qITtjX6TiLHQRYYxt+PjTRCoWPNMz2yIWTc4IZi4qQWBEaHPsA/plY8EBcE UK0f3PgTVG++5GZf4omT X-Google-Smtp-Source: AGHT+IF21ErfR8RM8fRPzYD+wixiVLw7sXAyf0KZcMGNN479CDA6RIk8pYEjKUzTK+IK4tCOgZErPw== X-Received: by 2002:a05:6000:1a8f:b0:385:e13c:5406 with SMTP id ffacd0b85a97d-38880acd9a4mr4437998f8f.21.1734174843021; Sat, 14 Dec 2024 03:14:03 -0800 (PST) Original-Received: from fedora.localnet (2-230-139-124.ip202.fastwebnet.it. [2.230.139.124]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-388c8060fb3sm2245951f8f.94.2024.12.14.03.14.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Dec 2024 03:14:02 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=v.pupillo@gmail.com; helo=mail-wm1-x32a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326478 Archived-At: In data domenica 8 dicembre 2024 08:44:25 Ora standard dell=E2=80=99Europa = centrale,=20 Yuan Fu ha scritto: >=20 > Ok, following the recent discussion, I implemented the original idea, whi= ch > is an alist mapping major modes to font lock levels. The check is made wi= th > derived-mode-p, so c-mode should work for c-ts-mode too, but I still used > c-ts-mode in the example in the docstring since I don=E2=80=99t want to c= omplicate > it. The change is pushed to master. >=20 > Yuan Thank you Yuan! Vincenzo