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 api Date: Sun, 13 Mar 2022 20:43:46 -0700 Message-ID: <8BA5A317-A646-40B5-82A0-F5440B7FEFCE@gmail.com> References: <9C5A86D6-0E7D-4DDF-B211-278EF9AC7E01@gmail.com> <87a6gq5mxl.fsf@gmail.com> <877dbu5mgj.fsf@gmail.com> <0BB906F7-BD3A-41CC-9783-19AA16934497@gmail.com> <83pmplq9f3.fsf@gnu.org> <5B304D80-2969-4F59-9A90-412D0A284912@gmail.com> <83ilvbpsvl.fsf@gnu.org> <4A6F417A-EF74-40B6-9517-6C0947AB87A6@gmail.com> <83wnjmiork.fsf@gnu.org> <6D1CD758-2C6F-4843-9739-F2A5D5591648@gmail.com> <67183EAB-5D98-4211-B71B-4618D6266A15@gmail.com> <87ee36xr2h.fsf@yahoo.com> <565A047E-3B0F-4A81-A9F6-871B578A84A6@gmail.com> <838rtdky5e.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.60.0.1.1\)) 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="40172"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?B?VHXhuqVuLUFuaCBOZ3V54buFbg==?= , Theodor Thornhill , =?utf-8?Q?Cl=C3=A9ment_Pit-Claudel?= , Emacs developers , Po Lu , Philipp , Stefan Monnier , Yoav Marco , Stephen Leake , john@yates-sheets.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 14 04:45:11 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 1nTbdv-000ACd-4A for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Mar 2022 04:45:11 +0100 Original-Received: from localhost ([::1]:57160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nTbdt-0000sf-KZ for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Mar 2022 23:45:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTbcf-0000A6-6K for emacs-devel@gnu.org; Sun, 13 Mar 2022 23:43:53 -0400 Original-Received: from [2607:f8b0:4864:20::1036] (port=52097 helo=mail-pj1-x1036.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nTbcd-0004Tz-GH; Sun, 13 Mar 2022 23:43:52 -0400 Original-Received: by mail-pj1-x1036.google.com with SMTP id cx5so13314563pjb.1; Sun, 13 Mar 2022 20:43:50 -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=iYxvZDHL7mW93j9PMhr7CdojzOp2jpYPQI7QMJF9FWk=; b=XP5LJBYoVBrtSPm6ZK3J0vxJFaVw8V69/QF9uen7gaMOLY1IRAO527WSYVrHC9NsBm +yprG8++yJUo9n/odofuw5oQ5Gq/QjHiFUHGfyta2MZA1JNnO6uxcIXXnkKUBFcorHnP pP6jGldhlUlQg/OvQYNT4WxZRJDJV5F5frAM9LqYzQCILHMgjXTzhgeaBcyWQEZFKlbz 98akGOUct94wQ/M2t+FIi7dEGjkRgi8FFRuV9vJ+b/soOmk6xyviYtZtsHWYdRJysIM0 olUOddCgLX51Is0NAKpJ/qUYdHJfttgKsne9tf7eq7OcdifWzLZXT9j9O6PnAJ8Ztmjt OHuQ== 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=iYxvZDHL7mW93j9PMhr7CdojzOp2jpYPQI7QMJF9FWk=; b=QKkhC9+TWnc08PNvtjSUgpqtQ4kpLQL9CFynto72fDX8qOYK2xgRq3eE4Pfkhe46eR b9LU6DzrydaTjdz0gYUudIcNbPEIKCBZfaLTTechHiaVW1reAHiLs6t1CQ+jVWGm45lv w1p16sMaUgUGzBToOt67vJUQAmxrpSAs4L3o0zkmALH/XC2c10TtszjR64pj6J5rOIGo 07Op4hV0+Hzx03Tch5xoOGiG0SpQBjFYZldNqY2XbWs/9MHfqvipxgxYp2DW8c5RxXvR rKP6UIOsvk4RQsE85iDxJKLgLJrWWfF5wiICwSqvedQ2fyZ6+DrgEIbVIyuVkiICkzbq 9SQg== X-Gm-Message-State: AOAM530U9F0TN/DtFEvV0Gny36D9iWmnrMLD5pDbtwD8c4v9fhxV7V2W 27rehvMzqFoHPFInlsIvDNXVXdDEn7Q= X-Google-Smtp-Source: ABdhPJzA0A+5pbt2EeJnLCy6b9ysQaYFxvqGjzKSZycEuNWSs+uNr8lW8lVWRuLiPr06JJ44MXs+qQ== X-Received: by 2002:a17:902:9008:b0:14f:b1f9:5271 with SMTP id a8-20020a170902900800b0014fb1f95271mr21199984plp.86.1647229429429; Sun, 13 Mar 2022 20:43:49 -0700 (PDT) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c90:5487:8bbc:49b8:a449]) by smtp.gmail.com with ESMTPSA id 9-20020a621909000000b004f6f40195f8sm17295115pfz.133.2022.03.13.20.43.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Mar 2022 20:43:49 -0700 (PDT) In-Reply-To: <838rtdky5e.fsf@gnu.org> X-Mailer: Apple Mail (2.3693.60.0.1.1) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1036 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::1036; envelope-from=casouri@gmail.com; helo=mail-pj1-x1036.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:287109 Archived-At: > On Mar 13, 2022, at 8:31 PM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Sun, 13 Mar 2022 17:23:09 -0700 >> Cc: Tu=E1=BA=A5n-Anh Nguy=E1=BB=85n , >> Theodor Thornhill , >> Cl=C3=A9ment Pit-Claudel , >> Emacs developers , Philipp = , >> Stefan Monnier , Eli Zaretskii = , >> Yoav Marco , >> Stephen Leake , >> John Yates >>=20 >>>> +if test "${with_tree_sitter}" !=3D "no"; then >>>> + EMACS_CHECK_MODULES([TREE_SITTER], [tree-sitter >=3D 0.0], >>>=20 >>> Is that version number a typo? >>>=20 >>> I assume the tree-sitter support depends on the recently introduced >>> interface for specificing custom malloc functions. >>>=20 >>=20 >> Yes, good catch. The current version is 0.20.6. I think we should use = that? >=20 > Please use the first version where the malloc customization was > introduced. Cool. That would be 0.20.2. Yuan=