From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter integration on feature/tree-sitter Date: Fri, 17 Jun 2022 00:17:54 -0700 Message-ID: <6EA831D3-A9C9-4346-B1E8-7748BAB285E2@gmail.com> References: <2c2746e5f2558a87e8eab6f0914264a020173a9d.camel@pm.me> <27630AA3-8026-4E24-8852-ACCD9325B99D@gmail.com> <0E9E702B-B07C-4794-8498-29B9320E14CC@gmail.com> <83letvq0ii.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28959"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 17 09:21:28 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 1o26IK-0007MV-6b for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Jun 2022 09:21:28 +0200 Original-Received: from localhost ([::1]:39842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o26II-0007FC-Mo for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Jun 2022 03:21:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o26Ex-0005fB-NJ for emacs-devel@gnu.org; Fri, 17 Jun 2022 03:17:59 -0400 Original-Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:37505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o26Ew-0001pz-9y; Fri, 17 Jun 2022 03:17:59 -0400 Original-Received: by mail-pl1-x631.google.com with SMTP id t2so3184317pld.4; Fri, 17 Jun 2022 00:17:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=lA4W4+KTs7JZ+Jjs8Hy/sqdtG5JaZ/FLYkSDd20hDkA=; b=bLywowh2Vla+kBBsW7jJuN13/5iFz8nK1OZbKbQ5tSMqc8VjlxvBi/rocc0qz+aEUm gDBOEW7JXI7Wn7ua1nkRYp2Zqn+Lh5azlB3V63PhpHn2hMivfGgydPQKVspuSIwDImT0 cC3xDxsY4NGeEb0GwWR3Grj1hjM4pzR581u/iRMZjs19OetsnhPVDsT7qwuN+MPntele o9u69t2H1NphEL986Vkt7sWSgj6+DtW3bKA3LXQQB9gvFeuqSzTYqrhptrCB6oS6jdBt H4n1z4EK/Lgcyv2vcZC156OOq2NNxDjHQNa+t/jcN01R0qDsRPdrRZRVyx742jhYtMVc PaUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=lA4W4+KTs7JZ+Jjs8Hy/sqdtG5JaZ/FLYkSDd20hDkA=; b=TmsnU510owb7uEpB2p+0jdEkjR5zpbh9bfLgeMP5imG1IpIr783Ruv2uvfDbTpenKL qEpO8JI72yc4e8WL7w7sdQjevwa7gW8CjXFNSNljdPA6qHXqDb4UamNZfW98MKE3P8nR 9dxgkDcKsmczucQ12EzwEMDRNjXr2GzcB6aoUnEbga3zvUqyPMdsivmlv429nOF+0GNb pPhQBZ8gFuIojhAl2O4oKmbxm3DqSkfLscTk8TuyQ1HCN1uD+6Q+H4yJQap5twhH4G/n LlIjkLJSX22RfDJiFv3nQT8ifkBWeDTLMt8cc32o7mq8fXfBWvo0hvs3nhfQDVvWNkX+ kzCw== X-Gm-Message-State: AJIora/1zeBrPtXv1WYTadWWnxYO+RkNDr/VDOJtJbZIoaLwYZcMHw8V 9pI11XD7ivrnDs8AC6K1+s3npkiqUyo= X-Google-Smtp-Source: AGRyM1uuIFj8Y6ll7VoGQMpCSnIuqGYvof6OuaJ9Vw0P6y2mzTmMCJ7UDHHJ7k3IKPhUo01FYvT9nQ== X-Received: by 2002:a17:90b:240e:b0:1e0:775b:f8fc with SMTP id nr14-20020a17090b240e00b001e0775bf8fcmr9196402pjb.132.1655450276025; Fri, 17 Jun 2022 00:17:56 -0700 (PDT) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c90:c15:33ec:172b:f758]) by smtp.gmail.com with ESMTPSA id n18-20020a638f12000000b003fc136f9a7dsm3067770pgd.38.2022.06.17.00.17.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Jun 2022 00:17:55 -0700 (PDT) In-Reply-To: <83letvq0ii.fsf@gnu.org> X-Mailer: Apple Mail (2.3696.100.31) Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=casouri@gmail.com; helo=mail-pl1-x631.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:291280 Archived-At: > On Jun 16, 2022, at 11:15 PM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Thu, 16 Jun 2022 12:03:08 -0700 >>=20 >> 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. >=20 > 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. = The purpose of the parser list is to update each parser when buffer = content changed. So you don=E2=80=99t want to remove a parser from the = list and add it back: it would be out-of-sync. Yuan=