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, 17 Jun 2022 13:37:42 +0300 Message-ID: <83czf7pocp.fsf@gnu.org> References: <2c2746e5f2558a87e8eab6f0914264a020173a9d.camel@pm.me> <27630AA3-8026-4E24-8852-ACCD9325B99D@gmail.com> <0E9E702B-B07C-4794-8498-29B9320E14CC@gmail.com> <83letvq0ii.fsf@gnu.org> <6EA831D3-A9C9-4346-B1E8-7748BAB285E2@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14101"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 17 12:39:48 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 1o29OF-0003U3-3Q for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Jun 2022 12:39:47 +0200 Original-Received: from localhost ([::1]:46598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o29OD-0003mQ-Ee for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Jun 2022 06:39:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51412) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o29MI-00033e-Mq for emacs-devel@gnu.org; Fri, 17 Jun 2022 06:37:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42518) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o29MI-0001LJ-EW; Fri, 17 Jun 2022 06:37:46 -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=OgJ+RLIL6Cmk1Dbc7X7fd5lN6AvBcp7073mJ2IR/APs=; b=qA7m8JSVYZmC Q38yqlEbS/Yl3aTzFRlp9wt1I4XK8Z1QAS4AvzT0JgBGRq8DFaud6GPlKPw5e8FezWKnNNN4Vf7gz y8ye3h3FAgFfHaKI4VhpqtW4bxnQvb2psxEpVDjafZWLQ2hzOoZPMCSHuoGBhKC8UWjJw8yLL7qh0 Gg9vbjgRxQhIKLWE0qGn4zCMcQlD1qDSWxIKD3+g7mhe/wZlgZ02JpAIZGA0BgugvSrxyqd+CcFHI 9pV2MsFP7WWyu1PfnRbgwt9SqUzG2FF90M0x+VedT9BjOT8uGJIj7aqjJuL7g6loeLoUF+hl2C/lF uSVZeYwG7MLiFtHpFm96qw==; Original-Received: from [87.69.77.57] (port=3368 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 1o29MH-0003Gf-Q8; Fri, 17 Jun 2022 06:37:46 -0400 In-Reply-To: <6EA831D3-A9C9-4346-B1E8-7748BAB285E2@gmail.com> (message from Yuan Fu on Fri, 17 Jun 2022 00:17:54 -0700) 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:291284 Archived-At: > From: Yuan Fu > Date: Fri, 17 Jun 2022 00:17:54 -0700 > Cc: emacs-devel@gnu.org > > >> Moving forward, I want to make treesit-parser-list internal and turn it into a function that returns the parser list. And add a function to remove a parser from the parser list. > > > > And a function to add to the list, right? Or does it already exist? > > Creating a parser automatically adds it to the parser list of a buffer. Then removing a parser means we actually delete it?