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#60559: 29.0.60; "Cannot activate tree-sitter" spam Date: Thu, 05 Jan 2023 10:56:16 +0200 Message-ID: <831qo9xsun.fsf@gnu.org> References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> <8dea9f3e0ea979c713da@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11817"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, 60559@debbugs.gnu.org, theo@thornhill.no, mardani29@yahoo.es, jostein@secure.kjonigsen.net, monnier@iro.umontreal.ca, larsi@gnus.org, epg@pretzelnet.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 05 09:57:13 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 1pDM3l-0002pl-Cf for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Jan 2023 09:57:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDM3b-0004Vt-Np; Thu, 05 Jan 2023 03:57:03 -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 1pDM3a-0004VN-9j for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 03:57:02 -0500 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 1pDM3a-0006oW-0y for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 03:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pDM3Z-0003R0-Sh for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 03:57:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Jan 2023 08:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60559 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix notabug Original-Received: via spool by 60559-submit@debbugs.gnu.org id=B60559.167290897213134 (code B ref 60559); Thu, 05 Jan 2023 08:57:01 +0000 Original-Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 08:56:12 +0000 Original-Received: from localhost ([127.0.0.1]:50246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDM2l-0003Pl-QB for submit@debbugs.gnu.org; Thu, 05 Jan 2023 03:56:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDM2j-0003PY-SE for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 03:56:10 -0500 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 1pDM2e-0006c9-2g; Thu, 05 Jan 2023 03:56:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=syLV8K9aYyQ5h+NsOW6bYrg2jbUXwuuxTxVj5J6tIUA=; b=VbjrSdl/cQD3UlVVUexl Bit2+0TPZuWmdKn0uwhPF4X+EANI7TXs5aS/bJYAa6KWjRI0Cc3479oAs5caC6CfxYSRXTFEGYvpS STC64VcsRJSNo2OFwy41j1XqO19oCEFhRLjJrDFpjFKzMk2MyT2P9lD9du9+m2HqXwqR2RTw7/Tvb Wd0fB8qI+jE9bSkbzgZxUJuLL3h1/LyvufntpezT6kCUQ6/LjFkggmJEmMdSwzvPkGYQBKHtjeaSD 8y2oCQhL/npPvf/wzhJb814jSiA3FnDSBNhpMMgEQZu7+EnICL/AD3XX62NuSNebBLzyqS0SOWztF E4o6DXOIBuuXAQ==; 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 1pDM2c-0001aT-HT; Thu, 05 Jan 2023 03:56:03 -0500 In-Reply-To: <8dea9f3e0ea979c713da@heytings.org> (message from Gregory Heytings on Thu, 05 Jan 2023 08:44:30 +0000) 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:252580 Archived-At: > Date: Thu, 05 Jan 2023 08:44:30 +0000 > From: Gregory Heytings > cc: Fu Yuan , Stefan Monnier , > Lars Ingebrigtsen , Theodor Thornhill , > Jostein Kjønigsen , > 60559@debbugs.gnu.org, epg@pretzelnet.org, mardani29@yahoo.es > > I suggest a slightly different solution: add a global minor mode, say > 'ts-modes'. Users would only have to add (ts-modes 1) in their init > files, and the logic would be: > > (treesit-available-p) ts-modes > nil nil => do nothing > nil t => warning > t nil => use available tree-sitter modes > t t => use available tree-sitter modes > > This seems more future-proof: otherwise users who want to user the > available tree-sitter modes would have to require all such modes. ATM > there are only 19, but Emacs 30 could very well have twice or thrice that > number of tree-sitter modes. Thanks. This was already considered. I don't like asking users to customize a list as a means of activating an optional mode. I also don't think we have enough information for committing ourselves to such a solution at this stage. So I'd prefer not to do this on the release branch.