From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter integration on feature/tree-sitter Date: Fri, 17 Jun 2022 10:00:04 +0800 Message-ID: <871qvorqvv.fsf@localhost> References: <2c2746e5f2558a87e8eab6f0914264a020173a9d.camel@pm.me> <27630AA3-8026-4E24-8852-ACCD9325B99D@gmail.com> <0E9E702B-B07C-4794-8498-29B9320E14CC@gmail.com> Mime-Version: 1.0 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="33061"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs Devel To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 17 04:00:37 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 1o21Hp-0008UB-FU for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Jun 2022 04:00:37 +0200 Original-Received: from localhost ([::1]:33926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o21Ho-0004cO-B5 for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Jun 2022 22:00:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o21GH-0003qK-GH for emacs-devel@gnu.org; Thu, 16 Jun 2022 21:59:02 -0400 Original-Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:34561) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o21GE-0001w0-Bn for emacs-devel@gnu.org; Thu, 16 Jun 2022 21:58:59 -0400 Original-Received: by mail-pj1-x1035.google.com with SMTP id mh16-20020a17090b4ad000b001e8313301f1so6316054pjb.1 for ; Thu, 16 Jun 2022 18:58:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=jrhvDxYf8A7KrjUpDGhQHrrM/yGJvnrGz+HE0RC2fRI=; b=VXEe7tVmOHisCcRq5SyeNMNtlKtW6wChRITcvyuXuEpJxF7ATh6YObiB5MqiUSGrLV qx/kMC5xMRjzibdP9twN/voF00eAo0wTl0JGARMQT0Wvt+CtmU8o0iL1rEkEr8EsAawi y87pti6qcMhkwDANFr0MrJ14NjcXGqH4ugr8p5UHBsOCzAKPL5YipbL6CLiQf+S1UPW1 59CYBTvbMFe2rNVpXj23wxZW6oEBdq3Pp8gX2OWXpj6avThY5pX0paeRIxQuRPJwmfh4 9hmqTySbr9NV1q8kHYojyKyhq1tPDXThQ1wOmhHQHP0FZ4sX48SO/KvAcgYDgl3x/JRy WWUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=jrhvDxYf8A7KrjUpDGhQHrrM/yGJvnrGz+HE0RC2fRI=; b=VJsbPN5+zoMQrkS3q8IvzZWTZHBg611hZIk5XsY+QEEXsz14yVNmWHTGWqd6FXCd/Q LSS7pF6ocZ1J1AFviAN4HUPbENZMPKYRn4e4kEE7Py4TZJATns6wPyjga5j7fPvaHMO6 X0Xa5V3gzkUE+/lZwNudP41fTt9ZkLf5D7jftBceQ+CVP7MKiUn/8Lq5jPLSoPZxYajR oSo2DpXwretEFZEK5VLU6zy2Bo0qZP68hewP1He1JYftYD7QswsSCb2F2OdJR7aUjm42 sVjKLVNBgtBstXdI2mJy3xdTPn5fJxDuoAXxBgDRTwlwQ8Z7SdYBKGPPXD65/OnbZ/MT 3EsA== X-Gm-Message-State: AJIora/Gi4+xSotTk80K4+fGobgOZVjsvuNbqdVau+dleL0zRip5Dr+Y 93JqP3+T5diIeKbYKnsKXqA= X-Google-Smtp-Source: AGRyM1sif+BMJb2nGW44avjTmM2lrLGy+LxQIFFJ14TCdj4TpgKOuyp4S2Qp+db/ly9nnpUR4YWkQw== X-Received: by 2002:a17:90b:4b90:b0:1e8:48bd:453 with SMTP id lr16-20020a17090b4b9000b001e848bd0453mr18911791pjb.86.1655431136531; Thu, 16 Jun 2022 18:58:56 -0700 (PDT) Original-Received: from localhost ([66.154.105.4]) by smtp.gmail.com with ESMTPSA id l25-20020a637019000000b003fdc7e490a6sm2468120pgc.20.2022.06.16.18.58.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jun 2022 18:58:55 -0700 (PDT) In-Reply-To: <0E9E702B-B07C-4794-8498-29B9320E14CC@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1035.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, 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:291262 Archived-At: Yuan Fu writes: > I=E2=80=99ve just finished with Real Life and got back to tree-sitter. I= =E2=80=99ll reply to individual messages separately, but here is a summary = of all the latest changes pushed to feature/tree-sitter Would it be possible to expose ts_record_change to Elisp? I am asking in the interest of Org mode parser that is also parsing the buffer AST and tracks buffer modifications. The built-in after-change-functions are not reliable because they can be (and often are) easily suppressed by with-silent-modifications macro. See bug#46982 and bug#51766. Best, Ihor