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 api Date: Sat, 18 Dec 2021 16:57:45 +0200 Message-ID: <83tuf69d06.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11953"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, 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: Philipp Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 18 15:58: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 1mybAd-0002uK-Kn for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Dec 2021 15:58:47 +0100 Original-Received: from localhost ([::1]:35622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mybAc-0006eG-PL for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Dec 2021 09:58:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myb9q-0005SI-JF for emacs-devel@gnu.org; Sat, 18 Dec 2021 09:57:59 -0500 Original-Received: from [2001:470:142:3::e] (port=54338 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myb9p-0001qc-J3; Sat, 18 Dec 2021 09:57:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=DKoBGmsbVWE3WU8ioBe/A9HpXr7idzWL0RZRPDEkZ54=; b=OB/PQ+IJehMh 9UnM9+CQSxZs3vt+xZuRhfg7LXYEpBkqRYd3j3HbFnP5l6r4C/2sReUhefuDB5bvHlY7xqqHhtpMn M5RSM+0id+QbsU6jvcutPS1c7K1VodaCs7n4miifjrY+mRDjujZ3GQidjV+MFulSvYXkDMW9+jm2S BPsTTLAIzHKWaUW4xutjMBI+7j+0j+hoccoS+rJW3brxhhfEMQeicQAmWl2u4zqQzcqItabw06XeJ yHCBhHo5Sse8LVoLAvI5wQQlnHzHM1PzMdzgQxAhqp5mON3qYvmW9oQdgmuivJrM4ksBnSZVx5I3t BLfq+wraj7XTLMp7SQrDYg==; Original-Received: from [87.69.77.57] (port=2891 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 1myb9p-0003Jg-EH; Sat, 18 Dec 2021 09:57:57 -0500 In-Reply-To: (message from Philipp on Sat, 18 Dec 2021 15:45:18 +0100) 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:282320 Archived-At: > From: Philipp > Date: Sat, 18 Dec 2021 15:45:18 +0100 > Cc: Yuan Fu , > ubolonton@gmail.com, > theo@thornhill.no, > cpitclaudel@gmail.com, > emacs-devel@gnu.org, > monnier@iro.umontreal.ca, > stephen_leake@stephe-leake.org, > john@yates-sheets.org > > > 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. It may not be enough to satisfy purists, but it's enough to allow the user to save the session and shut down Emacs in an orderly fashion, instead of abruptly exiting and losing all the edits.