From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#63750: 30.0.50; tree-sitter: `treesit-language-source-alist' is not customisable Date: Sat, 27 May 2023 15:32:00 +0300 Message-ID: <834jnyj6pr.fsf@gnu.org> References: <87a5xq6l0b.fsf@masteringemacs.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23062"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63750@debbugs.gnu.org To: Mickey Petersen , Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 27 14:32:37 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1q2t64-0005oO-TT for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 May 2023 14:32:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2t5Y-0006Sl-QV; Sat, 27 May 2023 08:32:04 -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 1q2t5X-0006SX-LM for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 08:32:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q2t5W-0007yl-FY for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 08:32:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q2t5V-0002pK-Qd for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 08:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 May 2023 12:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63750 X-GNU-PR-Package: emacs Original-Received: via spool by 63750-submit@debbugs.gnu.org id=B63750.168519069610829 (code B ref 63750); Sat, 27 May 2023 12:32:01 +0000 Original-Received: (at 63750) by debbugs.gnu.org; 27 May 2023 12:31:36 +0000 Original-Received: from localhost ([127.0.0.1]:51524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2t56-0002ob-Ek for submit@debbugs.gnu.org; Sat, 27 May 2023 08:31:36 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2t53-0002oJ-Sr for 63750@debbugs.gnu.org; Sat, 27 May 2023 08:31:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2t4y-0007vU-9v; Sat, 27 May 2023 08:31:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=L/XwGg+WXcDmOvJkXuuiGTwUPrc/X1QoCoOyx6Y6vCE=; b=B+e0xOULFBU1 UsP9f6iid4CtdMZWgqLxdh0EJAWBCqO2HN87EbtcqWGbCl66EbzLqQHlsR7LVp0WLQnxwuLfK3nWf rtmcmEdUe4hZLZK1c9aQ9PlZN4TKLa7a8YRjH5vapneBMGReXUFXmNwOhEI3jjKcUwayvMV2L/hXL MDlhm9Zocpaf2IdM8UP1BHniDykrykKYh/BI9AMwd2N4ortoxhWoZ+ZdXFh54PEWjHx8W95NGDI4Z NERF1tS3xl4Ng75fuvkzkUE0p4xfFE5iV6PPTq+VoGVNPLQPTDovopWyauiqOR2ap6Gp6MHOM/pBx 4kn3DBTSjPE1RBHdggQX4A==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2t4w-0002a9-N1; Sat, 27 May 2023 08:31:28 -0400 In-Reply-To: <87a5xq6l0b.fsf@masteringemacs.org> (message from Mickey Petersen on Sat, 27 May 2023 13:01:40 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262474 Archived-At: > From: Mickey Petersen > Date: Sat, 27 May 2023 13:01:40 +0100 > > > Given the simple alist structure, and that its intent is to be used > with the interactive function `treesit-install-language-grammar', it'd > make sense to turn it into a Customize option. We deliberately decided not to make it a defcustom, and not to provide any non-trivial default value, so as to avoid the impression that we as a project want to be responsible for the language grammars, their correctness, up-to-date sites, and their licenses. It should be entirely up to the user and/or the Emacs distros. However, I think we decided to make it so that each installation should update the value of the variable with the data of the grammar just installed. I see that we don't actually do that -- Yuan, am I misremembering this? If not, would you please add code to add to the variable's value the data of every grammar that is installed?