From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Xiyue Deng Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter maturity Date: Tue, 24 Dec 2024 13:31:29 -0800 Message-ID: <87o710sr7y.fsf@debian-hx90.lan> References: <1ed88fca-788a-fe9f-b6c8-edb2f49751c9@mavit.org.uk> <67428b3d.c80a0220.2f3036.adbdSMTPIN_ADDED_BROKEN@mx.google.com> <86ldwdm7xg.fsf@gnu.org> <6765355b.c80a0220.1a6b24.3117SMTPIN_ADDED_BROKEN@mx.google.com> <00554790-CACA-4233-8846-9E091CF1F7AA@gmail.com> <86msgl2red.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11209"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Notmuch/0.38.1 (https://notmuchmail.org) Emacs/29.4 (x86_64-pc-linux-gnu) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 24 22:32:24 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 1tQCVs-0002pL-CM for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Dec 2024 22:32:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQCVf-0000Yb-P0; Tue, 24 Dec 2024 16:32:12 -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 1tQCV6-0000MI-Vx for emacs-devel@gnu.org; Tue, 24 Dec 2024 16:31:41 -0500 Original-Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tQCV5-00045Y-B9 for emacs-devel@gnu.org; Tue, 24 Dec 2024 16:31:36 -0500 Original-Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-2166360285dso58178165ad.1 for ; Tue, 24 Dec 2024 13:31:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735075893; x=1735680693; darn=gnu.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=dWrP6IHqX+ciaELUG7+43R8x22Cu4HEs7E/D1h1zzgY=; b=dECdmNlAAOVfgF+3LoinAZiNICO7YWhOesyuxR4GJkPQctF4lO+wCSVJsXRgZo8lNa AXVRuBKYCwYtCVcN9h+F5SBxJytkF6NNzhDB/za4dWOrxlkkvRRkbgFwlfq7m/YAddE9 nQSNznThdp7JP+fT1D4ZTrTOuyBDaLAmctEyl+ZS4C83d9QvWCaaJVKgmWUk49WgiWe9 nsJ/VI7KNfL2YRes4snQd8yWEp8suKFZEQND6apPpDMzZNovD47sSSHpfMzYx5U/dPqX yBVt9LkU5LAFRNhyNGtsYzgMPGgUtdtV3h3nC6ibVf0EgTzlUXl/dzmOEc53vggf/wjT HRtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735075893; x=1735680693; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=dWrP6IHqX+ciaELUG7+43R8x22Cu4HEs7E/D1h1zzgY=; b=uOJTw8SxT2/DzXsg4qlXOpLqZEuw+P1QJZwCoYgtHgQbgPQ0DGcjJ3094JAHA/YvLL 1GjfJciBMVgNv0mcs2nX/CxGTy22Qu5yH196Qj1un1KVHzqGxQc7oVTRdkWkB8XKhvvO WzrquCk6OVGk36aIg1V+hOlcefOU6ZSh4dAiCYb0mh463nAAyUH8K2oB7O5tKE1owCOI DRwncrDEK/tTxiT4j6VpFS9BszXWEsywysLkATPibTZrSxjh9VYlf78fuqrsxcfFJMx7 pakwbZT8TGvXNCtaHEXEjYEd2+c+Q8CFbnaHl93FhiIryTQ1ia7UOuz1pj2aOMsedYHS 8AkQ== X-Gm-Message-State: AOJu0Ywm0j373jPeaHS33zc3uTaCxGkUkRIwITB73S6T9oaGTwhtuMoG Z9WgIpVfkqi877RJ3C+PkPQcBPWmNYuKd8Nsij+/8eNZyuQe7d1cxsRnKT8ZHfc= X-Gm-Gg: ASbGncvVBu6YrQ66mytcVruSEQJ689pMAbMc4DWlE/rRxfr+vkFzz/BS+6GHZjsHSut aPMK9alHJy5CjdZibbiy0N3QHNf66SiU2C2wxDloXr+cxuuXj5AfFrclZtGUP1p17D3JiQ2WpEC 9pg1A8OVpUAd9z0+bahA/RikkU8m+k9Sz7Pe4z7DQyh05rPzOtk7B0BrOSpvfWytpFm7K4INxU3 HNfZG3fMIIpY+zSs5eu7x0ON60iFZFpXqXPfTtmYcVMqJGuQZLwFU5/e0OjcHSprlrotdam35dz hhj50F5QxHPF5MM= X-Google-Smtp-Source: AGHT+IE2byYunwlGRgj/5aRQhyODlBFnBRh+lpPQuJrtNXEm2EnLmCBFLI1dAtzgBKld02u/jYOIWQ== X-Received: by 2002:a05:6a00:1411:b0:725:f376:f4f4 with SMTP id d2e1a72fcca58-72abde01aa8mr25702083b3a.13.1735075893381; Tue, 24 Dec 2024 13:31:33 -0800 (PST) Original-Received: from debian-hx90 (syn-076-094-249-045.res.spectrum.com. [76.94.249.45]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-842b1ce01b8sm7865476a12.20.2024.12.24.13.31.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Dec 2024 13:31:32 -0800 (PST) In-Reply-To: <86msgl2red.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=manphiz@gmail.com; helo=mail-pl1-x635.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:327034 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: >> From: Richard Stallman >> Cc: emacs-devel@gnu.org >> Date: Mon, 23 Dec 2024 23:52:43 -0500 >>=20 >> Ideally, users should be able install the grammars separately, perhaps >> using their `make install' or `apt', and Emacs would only use them >> where they normally get installed. That is ideal because it is not >> very integrated -- it preserves modularity. In particular, it assures >> that the details of how they get installed are not a direct concern of >> Emacs maintenance. > > Emacs needs to be built with the tree-sitter library to support the > modes based on it, and the grammar library needs to be installed. If > Emacs was built without tree-sitter, or if the grammar required for a > mode is not installed, the mode will display a warning to that effect. > Not sure whether this has been mentioned: there is a "treesit-auto"[1] addon on melpa that can detect missing treesitter grammars and handle their installation automatically. It would be great if something similar can be integrated into core, and if possible, grammar version handling and compatibility with distribution supplied grammar would be good to have. [1] https://github.com/renzmann/treesit-auto =2D-=20 Regards, Xiyue Deng --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJGBAEBCgAwFiEEiKQfd6o81mjI+LWALell7WOCXJMFAmdrKDESHG1hbnBoaXpA Z21haWwuY29tAAoJEC3pZe1jglyTWg8P/A1K15kYjsCCVGMwXwpGQhnluROxdojX GTKCULgE5Vmw10garO67lScJ951O5qffuU1GB0nJ+rDe3MtzC7Duoq8XeomUKi8p wMhBkLtkReh2PqjGRGOREiSfpRg5HR38mKY/lH3E5WvctOaXapVKLUhIQwCPySKe 77v1JSRD+LWGDHsVP8Ku+jmDbX4r/selsFMl61t8Y/873UakHGYaRqRX4cSDIeJN 8oAfjWMvjZZWnkc636UE2sbzrJhrIigEBaExGW1bpU9MvdxMQSDZq+Xjd04k/Nne G02I5tCZbcWdj3jfViffZTZN3x/DDAVv7tALoeisf/0Oo+onuo0BkEjqBMcvjVxj bWKiv6S8+mDjRQUZOuVAyoiTuPFf5e/IKvuYbu2BKk0StLSl8IXeAsXKMyE8jdK9 J1LXjXoC/nrkp3qOdSt37zlxMGkSFllI/PoIz172Dhzg5F7SCcGx0XnrFxTEhiwl KYFXgm5rujZLTHyKVa5z5s+q91Mv6CyRx3xXmNieuGZUa2Bv0hOcp+2l3xl69cXa BJNQ+r4ZjOj0Ea6IKBI9D84q8UG6OUw0iZ0twdY/Xzg867BgtQPYJ4insUN9LC8X L89It7ndt7zKni8Z0OC+YLEEp75gFzAOGbZZFil9p9KVavujy+MliUKaUQvIIAQw jOjrAulkHxli =W79C -----END PGP SIGNATURE----- --=-=-=--