From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill 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 08:46:21 +0200 Message-ID: <87r0zg5g76.fsf@thornhill.no> References: <83czb1jrm3.fsf@gnu.org> <87v8ot2nfi.fsf@posteo.net> <837d19jfia.fsf@gnu.org> <83edvgi3mx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23115"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, casouri@gmail.com To: Eli Zaretskii , philipk@posteo.net Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 10 08:50:11 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 1ohmc7-0005mP-Df for ged-emacs-devel@m.gmane-mx.org; Mon, 10 Oct 2022 08:50:11 +0200 Original-Received: from localhost ([::1]:41210 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ohmc5-00038E-0D for ged-emacs-devel@m.gmane-mx.org; Mon, 10 Oct 2022 02:50:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohmYV-0000we-QT for emacs-devel@gnu.org; Mon, 10 Oct 2022 02:46:27 -0400 Original-Received: from out2.migadu.com ([2001:41d0:2:aacc::]:12942) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohmYT-0002gM-Ve; Mon, 10 Oct 2022 02:46:27 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1665384383; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7tqLPWK1SQjY8TEMB51hOXPQTEF8/sJRj/LfQ2PeZcM=; b=yv7CVWxP7igvNq/TdeyJFovBTkc8JPsRZzLzJZWzDOeUGxNJtCMCr5o/boyTRpRKJFztXF qtb3Nr7D08x76Fvz6YYhYI+nAZiDPTGAjNds3M8kLOyeSMKufdMW1YfggLey8XbpbW/RHk iFawLSKnhX084cobIGPwP58bLtTycEb99njZahVu6iXNoAMtAgLFrcuPfp8WjXawr2ysVM YdosA5zJXvCJZYXbj4BpsVON28p8/D36LWZTFbiVAWVdqCYQizbk0ZsXTn9NisMakk8i3p vmXTNgGWWV5GyIumwUUwQ+tfVpU9kptWp13SJomu3MnuDBz6vTHwKGRdNBE4Aw== In-Reply-To: <83edvgi3mx.fsf@gnu.org> X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=2001:41d0:2:aacc::; envelope-from=theo@thornhill.no; helo=out2.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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" Xref: news.gmane.io gmane.emacs.devel:297317 Archived-At: Eli Zaretskii writes: >> 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? +1 for this, but also keep the per-modes customs. Then we can eat the cake and have it too. Such a mechanism can be made later, I think? Theo