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: Fri, 13 May 2022 13:41:29 +0300 Message-ID: <8335hdogti.fsf@gnu.org> References: <87y1zabmbt.fsf@gmail.com> <5F186EBD-CD21-422B-8B4F-0D5424173334@gmail.com> <875ymdwf76.fsf@gmail.com> <011DA1A3-0FA8-4449-878A-FD6B336B0F1B@gmail.com> <8735hhw75p.fsf@gmail.com> <83czgks4ss.fsf@gnu.org> <87wnesuw63.fsf@gmail.com> <83pmkkqhft.fsf@gnu.org> <87tu9wukbt.fsf@gmail.com> <83ee10qbk7.fsf@gnu.org> <8F6A43D1-D1EA-4602-A245-627DB7960FC2@gmail.com> <838rr7qqhw.fsf@gnu.org> <87sfpekf6t.fsf@gmail.com> <838rr6pwjt.fsf@gnu.org> <87pmkik7x6.fsf@gmail.com> <83wneqoej5.fsf@gnu.org> <87mtfmk4oi.fsf@gmail.com> <83ee0yndor.fsf@gnu.org> <87fsldkdec.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20307"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, emacs-devel@gnu.org To: Yoav Marco Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 13 12:45:32 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 1npSnb-0005A4-MK for ged-emacs-devel@m.gmane-mx.org; Fri, 13 May 2022 12:45:31 +0200 Original-Received: from localhost ([::1]:41878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npSnT-0000Pp-MT for ged-emacs-devel@m.gmane-mx.org; Fri, 13 May 2022 06:45:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npSjc-0001BO-KY for emacs-devel@gnu.org; Fri, 13 May 2022 06:41:25 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41710) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npSjc-0005Ss-Af; Fri, 13 May 2022 06:41:24 -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=BXpgI8Q9vRFAe9atH0qol7ku1y3jAkG3j6rRoTUKbt0=; b=EM73itKWt0co /sZW+dr9lEtuL+OsdlnJ3oLlFHKIH2FkoMRDwSz3gni8IOg8o02OKxSDdU3gYQIppUj72tiQJyh61 /WXrM3cMr1FrRHVO9NUVMlzUSuxfkpnIdne9BHoprpJdC3Dho3lZoxdB4XQKaLwKbieuIomPBmCe9 r1/COlcntOpnVC4FIrb2/gI6nawtkH190nbR56jq2OTOspbmUmV1OCG4atyqs6sXHreNPJ3bUldkc Ap8GENpRoBH6c1WY2xrrqEWjLPTcRPiAn8f2cnECI+JT81RlOIl8zzOHKn3j3ITk2TmBy5Eqe9+XH 1U+nqdcJ1/gYczytthblMQ==; Original-Received: from [87.69.77.57] (port=4619 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 1npSjb-0003Sh-Oa; Fri, 13 May 2022 06:41:24 -0400 In-Reply-To: <87fsldkdec.fsf@gmail.com> (message from Yoav Marco on Fri, 13 May 2022 11:42:04 +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:289723 Archived-At: > From: Yoav Marco > Cc: casouri@gmail.com, emacs-devel@gnu.org > Date: Fri, 13 May 2022 11:42:04 +0300 > > Eli Zaretskii writes: > > > Is it true that there's just one query for each PL mode, and it is > > fixed (doesn't change) and doesn't depend on the buffer contents in > > any way? If that is true, the major mode could compile the query > > whenever it is initialized, and then reuse it in every buffer that is > > under that major mode. > > It's correct, though there might be more than one if a mode wants to > offer fontification options users can toggle. But yeah, the major mode > could compile its queries when initialized. I'm in favor of this too. Then let's do that. Yuan, are there any issues with implementing this?