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:12:22 +0200 Message-ID: <838rihxuvt.fsf@gnu.org> References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> <6f44f7b4-2e14-51c2-2727-55a219b3b76d@secure.kjonigsen.net> 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="15228"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, 60559@debbugs.gnu.org, theo@thornhill.no, mardani29@yahoo.es, monnier@iro.umontreal.ca, larsi@gnus.org, epg@pretzelnet.org To: jostein@kjonigsen.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 05 09:13:24 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 1pDLNL-0003l0-UW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Jan 2023 09:13:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDLNB-0000Cs-FW; Thu, 05 Jan 2023 03:13:13 -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 1pDLN9-0000Ce-Ev for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 03:13:11 -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 1pDLN0-0003t4-DG for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 03:13:11 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pDLN0-0002FA-4h for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 03:13:02 -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:13:02 +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.16729063378557 (code B ref 60559); Thu, 05 Jan 2023 08:13:02 +0000 Original-Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 08:12:17 +0000 Original-Received: from localhost ([127.0.0.1]:50187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDLMG-0002Dx-Uw for submit@debbugs.gnu.org; Thu, 05 Jan 2023 03:12:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDLMF-0002Dl-4p for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 03:12:15 -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 1pDLM8-0003kN-EP; Thu, 05 Jan 2023 03:12:08 -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=xmdWEaaxjDvZ3ESLmTudc6Dk//xDROA4+aNJHhU6UZs=; b=XEkGbUPjSdrjwIAM0EzP Dhr8eVrVYINk45Q6YEvNMjxicfAQGXu32C2IP27Gmatt59CwmG3v0ydxFprewbBmRrs1jICSnti2E 9S9mYGCbwRsKzK9+4RMRkN8rZ3tirziZkvJ/HgWq0ohhn5oRM+Oc/4dJgYfZhMSPmq1kSrmyVCZ5F Xofr9N0JJcBXNQu/+kjtqtEuPB/+Y9aOc4cbrqL8Ff/2XeLNMnEm6nW6t05Nu/2OC3o7Jd/gknH3A 4FqNcMJO1yUA5riKYdStFTJT+5ufb5kYq2cYo1toPdUCn20AAhRiQffykW9YK5rzA1Kkp/N+TGrJD Pi5YG31+EqE6MQ==; 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 1pDLM7-0007Sz-MP; Thu, 05 Jan 2023 03:12:08 -0500 In-Reply-To: <6f44f7b4-2e14-51c2-2727-55a219b3b76d@secure.kjonigsen.net> (message from Jostein =?UTF-8?Q?Kj=C3=B8nigsen?= on Thu, 5 Jan 2023 08:57:05 +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:252569 Archived-At: > Date: Thu, 5 Jan 2023 08:57:05 +0100 > Cc: 60559@debbugs.gnu.org, mardani29@yahoo.es, epg@pretzelnet.org > From: Jostein Kjønigsen > > On 05.01.2023 07:51, Eli Zaretskii wrote: > > > > So here's a suggestion for such a solution: we make all the > > *-ts-mode's optional. That is, we don't add any of them to > > auto-mode-alist unless the file *-ts-mode.el is loaded > > So if I understand this correctly, the change is simply that people > wanting to use these modes now needs to do two things instead of one: > > 1. build with tree-sitter support (already a requirement) > > 2. will have to (require) the modes they want to use in their init.el > (the change) > > Have I understood things correctly? Yes, that's the idea. We could also make the mode command be autoloaded, so just "M-x foo-ts-mode RET" the first time will load the mode, thus avoiding the need for require in the init files. I guess there will be users which will prefer one or the other. > If so, that sounds perfectly reasonable to me. Thanks.