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: Tree-sitter integration on feature/tree-sitter Date: Sun, 08 May 2022 09:16:35 +0300 Message-ID: <83o808wnuk.fsf@gnu.org> 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> <871qx5je4q.fsf@thornhill.no> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5921"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, emacs-devel@gnu.org To: Theodor Thornhill Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 08 08:20:04 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 1nnaGy-0001Nv-9d for ged-emacs-devel@m.gmane-mx.org; Sun, 08 May 2022 08:20:04 +0200 Original-Received: from localhost ([::1]:56886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnaGw-0002Vd-O1 for ged-emacs-devel@m.gmane-mx.org; Sun, 08 May 2022 02:20:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnaDj-0000lc-2M for emacs-devel@gnu.org; Sun, 08 May 2022 02:16:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50516) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnaDi-0006UQ-I5; Sun, 08 May 2022 02:16:42 -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=xR9+qo+EQukHqmscuPctEiGl9IPdp8ykeC30SwMk7zY=; b=UzQZZcNDxeNV jtiB0o6kw/yI6QJBnHhC+Nik5TL6M/vNnBqS4Hf6kbm/1rFwXmuPXlzXqL3w9vs/5cCoJWPAghpXX KYwNw+XK7TE7IGd/0orRm3UtJ3KtWIrKHCw8IvUqTyqn1fO+7wu9ID/Ol73RdSECRiNehnTZvADXv Rd0x2Vkwm+9LDHpHU6SfPO/dYhR0dOl2jXLHcQRTnYl2HrQbp90pdNu3wc3gtAK1q2Vpw8z97z/hw IRBIHLcwPLwA8kybhOzX/QcQGrsZZyNaCYd7BM7YT3LOcswEAgNoOQLEaBiYqoIGOBqFx6hxHW7dY ce+bevz2MC4ZQTkNwgwn7g==; Original-Received: from [87.69.77.57] (port=2757 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 1nnaDi-00087h-1J; Sun, 08 May 2022 02:16:42 -0400 In-Reply-To: <871qx5je4q.fsf@thornhill.no> (message from Theodor Thornhill on Sat, 07 May 2022 22:12:37 +0200) 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:289444 Archived-At: > From: Theodor Thornhill > Cc: emacs-devel@gnu.org > Date: Sat, 07 May 2022 22:12:37 +0200 > > >> 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? My suggestion would be to modify the Emacs major modes, not to introduce special stand-alone modes. Making the changes directly in the existing modes is a faster way towards tree-sitter integration.