From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter api Date: Sat, 18 Dec 2021 15:45:18 +0100 Message-ID: References: <83r1f7hydn.fsf@gnu.org> <83lf3zdh4z.fsf@gnu.org> <8965C4A0-79D3-4D77-A6BA-D07A6C93F7FE@gmail.com> <83ilz3cs4k.fsf@gnu.org> <04D19C1A-CD64-4156-B932-1C9FEEE4EC7B@gmail.com> <83zgsebc0r.fsf@gnu.org> <1F752923-F357-4A18-B6E2-0120F1B9BD37@gmail.com> <83fsu5bzem.fsf@gnu.org> <83zgsdad5j.fsf@gnu.org> <83sfy391ni.fsf@gnu.org> <03386E3C-A975-4ECD-BF89-6AC62F751725@gmail.com> <83ilyz8xdl.fsf@gnu.org> <86czp6ukpj.fsf@stephe-leake.org> <1AEED8A5-BF5E-45E5-AE22-9B405A710F9B@gmail.com> <83czp313tf.fsf@gnu.org> <7447C582-70CB-4599-BC76-AD5687D64250@gmail.com> <784947A6-6164-4158-993B-01E881690ADF@gmail.com> <83zgrxji7q.fsf@gnu.org> <8E8D28F9-258E-490B-BF48-7EF8D6CA0817@gmail.com> <838rzgk6ll.fsf@gnu.org> <83k0g8mznc.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.40.0.1.81\)) 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="36386"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yuan Fu , theo@thornhill.no, ubolonton@gmail.com, emacs-devel@gnu.org, cpitclaudel@gmail.com, monnier@iro.umontreal.ca, stephen_leake@stephe-leake.org, john@yates-sheets.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 18 15:46:47 2021 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 1myaz0-0009GN-RW for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Dec 2021 15:46:46 +0100 Original-Received: from localhost ([::1]:45550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myayy-0002DC-UE for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Dec 2021 09:46:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myaxh-0000sT-DU for emacs-devel@gnu.org; Sat, 18 Dec 2021 09:45:25 -0500 Original-Received: from [2a00:1450:4864:20::42c] (port=46821 helo=mail-wr1-x42c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myaxf-0008Qc-Su; Sat, 18 Dec 2021 09:45:25 -0500 Original-Received: by mail-wr1-x42c.google.com with SMTP id i22so9720671wrb.13; Sat, 18 Dec 2021 06:45:22 -0800 (PST) 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=Lzw2LNPEBCNf5kZ2YNtXU7KZyxn00SBIPtffKsKnTas=; b=KjQMwXTUsgQO7gCcix3q01Zgxba59LnVYKC5Nr4pDgehtMeRICC5kQPb2kbNnx1Tqs DF8jPvZZC1bdSMAhG1kkAYb5pbiMslgp2f8HKrr5UyUnSile8roBrllmi0m2bVDSwiWR wsZfpvsVb/tvT1r0EY25qFyRPxERgMy5CZj/eDUqA+W3uWYXW0N3h9EckzmEr2raZWiR nCjSOq/s9vZYiuHkrRi2ZtWoetM/gbh3S0wJRba5OFL99ZX0UugtSWCtIAhtktUpyFLJ UTeSPWjpz4kU/xc70OAuRKL4hWVhBZSR2oSNCOuqaorZ9Qkp7+fHB1FgEcOcI0N/od1I 173Q== 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=Lzw2LNPEBCNf5kZ2YNtXU7KZyxn00SBIPtffKsKnTas=; b=zVIPJZXWmYBwArT23kANi+vV1gU+QzH+9mTZPB6jG8tMH/EFvKqzhyjbIzopmrdmcK th+VmDK/qpcipsYsXxESMhjvpVrPPUAS4Y13hsnuHGtI1rE/kApumnvAz9Bb5eyHz3l3 Kg34MiJqX/k/wJdk6yYiX6nGRpEfJ53hgTZjqCYKj/JsBPOPvLoc6a+FfpIWWlnNhy1X lSPve2U2jwIfBQB1rxLLyJg7Kt2A2+WhhocBrCCYrPatQkSZpiZlNhkJQD1qOMwu2XFK kw8CapW92GJw44R6IVsfAG3HuBRWVQTSwDyn7myCtkv0HW09EUySq9e/GgdBv6JSi+1o bRrQ== X-Gm-Message-State: AOAM531Xsu0I4AHAK9r3Ni6k6U0Rr5B6Ud0jKT7ZeW+9ofuyFx3CUNnu bRXjnfFrwL5LUguJcSTjYETfGSHE8SE= X-Google-Smtp-Source: ABdhPJxtLZWPKAnktcPcA+5nineSWdzViCvkDvt0lVVwdSb06ibOS0Ixnl6PM+m/Q+GPCsLNkHwDcw== X-Received: by 2002:adf:efd0:: with SMTP id i16mr6531814wrp.86.1639838721024; Sat, 18 Dec 2021 06:45:21 -0800 (PST) Original-Received: from smtpclient.apple (p57aaf2ef.dip0.t-ipconnect.de. [87.170.242.239]) by smtp.gmail.com with ESMTPSA id a22sm10071077wme.19.2021.12.18.06.45.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Dec 2021 06:45:19 -0800 (PST) In-Reply-To: <83k0g8mznc.fsf@gnu.org> X-Mailer: Apple Mail (2.3693.40.0.1.81) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42c (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=p.stephani2@gmail.com; helo=mail-wr1-x42c.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:282318 Archived-At: > Am 13.12.2021 um 13:56 schrieb Eli Zaretskii : >=20 >> From: Yuan Fu >> Date: Sun, 12 Dec 2021 22:54:59 -0800 >> Cc: Stefan Monnier , >> ubolonton@gmail.com, >> theo@thornhill.no, >> cpitclaudel@gmail.com, >> emacs-devel@gnu.org, >> stephen_leake@stephe-leake.org, >> john@yates-sheets.org >>=20 >> It=E2=80=99s been a while and no one provided further comments on the = indent and font-lock integration of tree-sitter, so I finished the = manuals for indent and font-lock integration. They are under 24.6 Font = Lock Mode and 24.7 Automatic Indentation of code. Once the author of = tree-sitter allow tree-sitter to change malloc implementation at = runtime, tree-sitter integration will be ready. (Though I suspect that = won=E2=80=99t come soon. The author is still actively developing = tree-sitter but he didn=E2=80=99t reply to my request.) >=20 > Would you please ping the authors and tell them that this single issue > prevents us from integrating TS into Emacs? Maybe that would change > their priorities. I cannot imagine that the feature we are asking is > hard to implement. That feature in itself won't be enough. Even with it, TreeSitter will = have the same problem as GMP: allocation isn't allowed to fail, and = longjmp'ing out of it isn't allowed and generally causes undefined = behavior. What's needed is a rewrite of the TreeSitter code so that it = handles allocation failure properly and gracefully by returning an error = to the caller.=