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: Tree-sitter integration on feature/tree-sitter Date: Sat, 07 May 2022 22:12:37 +0200 Message-ID: <871qx5je4q.fsf@thornhill.no> References: <9E6D13F6-7E50-44EE-A357-C971A11A3636@gmail.com> <837d6xzpac.fsf@gnu.org> <7B1F29B4-045A-420E-8FD7-C7C72FF14DDC@gmail.com> <837d6xxjpv.fsf@gnu.org> <834k21xhzd.fsf@gnu.org> <26ADA626-793E-4E21-9502-63675A7ED16B@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35271"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Yuan Fu , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 07 22:13:46 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 1nnQoB-0008vQ-Oz for ged-emacs-devel@m.gmane-mx.org; Sat, 07 May 2022 22:13:44 +0200 Original-Received: from localhost ([::1]:59720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnQo9-0006tO-W5 for ged-emacs-devel@m.gmane-mx.org; Sat, 07 May 2022 16:13:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnQnF-0006Ca-4A for emacs-devel@gnu.org; Sat, 07 May 2022 16:12:45 -0400 Original-Received: from out1.migadu.com ([91.121.223.63]:56303) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnQnC-0002Ez-Fd; Sat, 07 May 2022 16:12:44 -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=1651954359; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7IDmMJ4xpkhREV5fx6dUSnzO4LOeRKy9fW+q+/qe7NM=; b=InDCkxOXbg308XcO1J9X+qjWDgRp+WkrgHEhYEoLrVRO/mAdK5+E1C25etPuOCNt8IfkE1 e4BZ3A6ed/Ifm/uFU62VlPxM+BvAr10mVrG7MbS1nhd1W787P70/AN/WjmDVsrACDT8bEa wfADHiHN1pIgRLYkQ0R8JEeMHtE2fo2+ctcteAU/qR7OLywx2RA+w73tu76jNbGPTsj3ud cTv2nQ0/kuu56QRB/ekE7+yQxTFZ00g3tKF7OvJlO/WSxdtwdTUrB2l1RPeolvojoJuhAK aBKXPkQgXKZnyy3rp4vTaniiyi8c3Ayx31kgGQQkM8yd4+FfqO2gjhTEacHANQ== In-Reply-To: <26ADA626-793E-4E21-9502-63675A7ED16B@gmail.com> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: thornhill.no Received-SPF: pass client-ip=91.121.223.63; envelope-from=theo@thornhill.no; helo=out1.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_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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:289433 Archived-At: Yuan Fu writes: >>>=20 >>> That=E2=80=99s too much magic to ask from tree-sitter. >>=20 >> I didn't expect tree-sitter to do this for us, I thought the code >> which integrates it into Emacs should do it, and hoped that code was >> already written. > > Ah, I see, that would require people more competent than me on each of > the languages and major modes to try using tree-sitter feature for > major modes, and maybe raising suggestions and concerns along the way, > like Theodor has done. The quickest way to get this done is to start doing the work with some mode, say C, first as a separate mode maybe on the features/tree-sitter branch, then we can figure out later how to incorporate things? If there's any interest for this then I can work on that, and hopefully we can land on something useful soon? After that we can see how we want to proceed? IMO keeping such a mode in the feature-branch could be wise for the ease of installation. Unless there's too much toe-stepping. WDYT? Theodor