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.devel Subject: Re: Turing on tree-sitter (was: Call for volunteers: add tree-sitter support to major modes) Date: Mon, 10 Oct 2022 09:39:18 +0300 Message-ID: <83edvgi3mx.fsf@gnu.org> References: <83czb1jrm3.fsf@gnu.org> <87v8ot2nfi.fsf@posteo.net> <837d19jfia.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20192"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, casouri@gmail.com To: philipk@posteo.net Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 10 08:41:34 2022 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 1ohmTl-00057O-Qv for ged-emacs-devel@m.gmane-mx.org; Mon, 10 Oct 2022 08:41:34 +0200 Original-Received: from localhost ([::1]:49320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ohmTk-0005uY-Lm for ged-emacs-devel@m.gmane-mx.org; Mon, 10 Oct 2022 02:41:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohmRW-0003GE-9H for emacs-devel@gnu.org; Mon, 10 Oct 2022 02:39:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34778) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohmRV-0001Nq-Bt; Mon, 10 Oct 2022 02:39:13 -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=9VoQkP/ufy7pjGp9ANFoD+EgnvbgnU5sY3Cd5y1U1pw=; b=UPK1aNHZ4kuK TNXackpIoyIieMmWcW0Kc9S0Csmww4ioXVFsLglNdaopTbLD5o7fu5ygsJJypargUI1QRPquj+jIb HKhItj7QTjEp14Rxrwn9csYboymJP0U8OLd9GrsPZN3DEgETH4FNk3SBrsWH3jApc9hbcHk9PN7QN s6yxv1CI++MLTr4pjNukK47p92mIWDcylq/2VHr8e/QDHDVU/dGFVSO7ROA9sKL6mVyLO/26l/Ex8 5nuBwJGmWxbW3M610rRPaSZCFNRNYuLKMcqWHKGD5sVi3yMpciDslUYqRc3Ic7K2pTdY9cEgPfz7K FXPh925L9MfuuqNXB3+v3A==; Original-Received: from [87.69.77.57] (port=3727 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 1ohmRU-0000q3-GE; Mon, 10 Oct 2022 02:39:12 -0400 In-Reply-To: <837d19jfia.fsf@gnu.org> (message from Eli Zaretskii on Sun, 09 Oct 2022 16:25:17 +0300) 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" Xref: news.gmane.io gmane.emacs.devel:297314 Archived-At: > Date: Sun, 09 Oct 2022 16:25:17 +0300 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org, casouri@gmail.com > > > From: Philip Kaludercic > > Cc: emacs-devel@gnu.org, Yuan Fu > > Date: Sun, 09 Oct 2022 12:26:09 +0000 > > > > One more thing, it looks like the usage of tree-sitter is enabled for > > python by toggling `python-use-tree-sitter'. Will every mode now have > > this kind of an option? I would hope not... > > That's a separate discussion, so please start a new thread. So here I am, starting that separate discussion. Since tree-sitter support is per-language, I do think it makes sense for each mode to have its tree-sitter support turned on separately. But we could also have a global "turn on tree-sitter support in every mode that has it" option, which will turn this on for those modes which can be supported by tree-sitter, if the appropriate language-support library is installed. Comments?