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: Sat, 07 May 2022 22:21:01 +0300 Message-ID: <835ymhxi76.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> <87mtftqib2.fsf@thornhill.no> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22357"; 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 Sat May 07 21:27: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 1nnQ59-0005an-8M for ged-emacs-devel@m.gmane-mx.org; Sat, 07 May 2022 21:27:11 +0200 Original-Received: from localhost ([::1]:51690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnQ57-00078i-NH for ged-emacs-devel@m.gmane-mx.org; Sat, 07 May 2022 15:27:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnPzM-0007rx-V9 for emacs-devel@gnu.org; Sat, 07 May 2022 15:21:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43016) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnPzM-0003Wu-EH; Sat, 07 May 2022 15:21:12 -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=8TQqAsoCw3BMHv9ZgM5q+C+QSNkGZH7Z5GyaQ4K6Zy4=; b=bxD304qP8KzU R9xdcKYDyOIrEZSnsV5WmTz5lmD5ymzkqZsUWru1RRXOn1DaaaDocp3fYC674ZI5wLPmg0ZCUo6Yg +vhkAmGE5k7lsxRlgjlTud4tHOwwkedhhrK0AG6WK2L+Ab56IvVXCD70MrkQqXY2zGu0GCHrvRelI B15d5f8wq6RMJvDp4kMbizYoZ3UTMU3kRKDDqjrL/m/rtbJ1UOh4sbIqZu0tL2KCKxcS1sM+TSTeY 3OhPNPa06aLFt8t1ByLdS5iuIpXSf+Qf+p4dhksta6RSljc3T2VDEsrFhw2H/xiazE7Aec10Ykpiq yUbH11ho130r5VdrhNZDww==; Original-Received: from [87.69.77.57] (port=2297 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 1nnPzK-0004u4-P4; Sat, 07 May 2022 15:21:12 -0400 In-Reply-To: <87mtftqib2.fsf@thornhill.no> (message from Theodor Thornhill on Sat, 07 May 2022 21:00:33 +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:289431 Archived-At: > From: Theodor Thornhill > Cc: emacs-devel@gnu.org > Date: Sat, 07 May 2022 21:00:33 +0200 > > > > > Yes, thanks. > > > > However, I hoped that the font-lock and indentation are already > > integrated with tree-sitter, and all that is needed for a given > > major-mode to use it is to flip some variable. I didn't expect to > > need a completely separate major mode for C sources, for example. > > Isn't that the case, though? You need to define the patterns to use, > but apart from that, there's not much to it. I hoped those patterns and the support code was already in place, at least for the important major mode we use frequently. > > It sounds like we are farther from the goal that I thought we were, > > and some serious work is still ahead of us to get this integrated into > > the existing major modes. > > There's some manual labor involved in supporting a language. I hoped some of that was already done.