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, 19 Jun 2022 08:39:15 +0300 Message-ID: <83zgi9mcu4.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> <83czf7pocp.fsf@gnu.org> <83tu8io5i5.fsf@gnu.org> <83edzmnymo.fsf@gnu.org> <211D7584-1B0C-4A37-8ADF-08E1942BA719@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9144"; 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 Sun Jun 19 07:40:57 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 1o2ng9-0002Ad-4N for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Jun 2022 07:40:57 +0200 Original-Received: from localhost ([::1]:57326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2ng7-0005bF-R1 for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Jun 2022 01:40:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2nem-0004b0-Iv for emacs-devel@gnu.org; Sun, 19 Jun 2022 01:39:32 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52034) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2nem-0000Z5-32; Sun, 19 Jun 2022 01:39:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=RGcHqhAIv5bSh2FE4+cDu4G3KHiqbSgrDMo+jLr7WWs=; b=TRvHCuOeUHfX54y9dQ0T Cm9xFph1YnYODNIIjuxR04D4+XIQpEnXFYwePIXDVX3OZV8Yr1wSvw+Y92gFpJ+fLumIe0NYZucCK FD08hCUVx8w14ZIiHqoBV24GcEpl8CjMavTdCMaFPDaNVE5gPqkiPNftcLIt3FVaDc8Ve2HH3vHL0 CivQJAfywITETLpSZJ54LZDNJC3ofpfsqYwxWjZ8c7ywYlNsmPZm2NLYIwMsahvmpENdl2le2orNY 7T9qEZ0UAJHZOW0ou8csMv36woBi5HLHaHQ8z25wt/Qal54cEIuLN9UCvGhXrJFhBz6WInY1Gd/h/ ARB0OVwCRy/+tw==; Original-Received: from [87.69.77.57] (port=2165 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 1o2nel-0000PW-IY; Sun, 19 Jun 2022 01:39:31 -0400 In-Reply-To: <211D7584-1B0C-4A37-8ADF-08E1942BA719@gmail.com> (message from Yuan Fu on Sat, 18 Jun 2022 13:07:07 -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:291399 Archived-At: > From: Yuan Fu > Date: Sat, 18 Jun 2022 13:07:07 -0700 > Cc: emacs-devel@gnu.org > > > So you agree with me that a function to remove from the list is not > > needed? Once the list is no longer exposed to Lisp, the way Lisp > > programs should manipulate the list is by adding and deleting parsers, > > and by asking Emacs to show the list of existing parsers. Right? > > I don’t think we have any disagreement here, it’s just my miscommunication. We have three functions: > - treesit-parser-create that creates a parser and adds it to the parser list > - treesit-parser-delete that deletes a parser and removes it from the parser list > - treesit-parser-list that returns the parser list Right, that's exactly what I meant.