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 and language support Date: Fri, 25 Nov 2022 21:48:24 +0200 Message-ID: <83y1ryu86v.fsf@gnu.org> References: <6C4C266A-BC65-4486-80D1-1337A07CD6CF@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1426"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, emacs-devel@gnu.org To: "T.V Raman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 25 20:48: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 1oyegV-00009g-AT for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Nov 2022 20:48:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyegA-0006rt-JQ; Fri, 25 Nov 2022 14:48:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyeg8-0006rI-P2 for emacs-devel@gnu.org; Fri, 25 Nov 2022 14:48:04 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyeg8-0003On-6h; Fri, 25 Nov 2022 14:48:04 -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=UOI/yL/6T7hFYgQQhUHYIewvRkoL8gCLxGTznKc2FuI=; b=Ckt+dZhN+AFw 77nMYk4+jcMg6rPvMKDB7OFI/8YjLBQELeChjSc6wXEvlkkLTaQN7cDsg2zFXJ13AkbEo11hcnXWv C8SQ3720C7CZCXqKnArc2F8BGRTWybGoq3YettG7G7gmCVVb0acIHcR7lsKr+xP6vqzNg3KNX9nmr MtCgD+tCpxzCoTgkhfOEjE8Lys+m62cyj0zSR6RVO+0KSSJh1bCAz6PkqTPCOyIq0y6t86i2/hl52 CRlQGo6XVdCgrjqC/WWAM7wyG9ZWjNiTBObf+yNv5c43CEGjVFhtmYDDA4/8pzH3yqaVqg4SZbkRO 3YTR0gIP+9am3T50HvSRhA==; Original-Received: from [87.69.77.57] (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 1oyeg6-0005j9-5p; Fri, 25 Nov 2022 14:48:02 -0500 In-Reply-To: (raman@google.com) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300513 Archived-At: > From: "T.V Raman" > Cc: emacs-devel@gnu.org > Date: Fri, 25 Nov 2022 09:57:05 -0800 > > Incidentally, if one installs tree-sitter-lang from melpa, it > automatically builds the modules; but it then requires tree-sitter from > Feb 2022 which is older than what is in the emacs tree. We need a version that supports custom memory-allocation function, because Emacs needs to control how memory is allocated, and what happens when tree-sitter runs out of memory. > We could ease a lot of pain if we brought the language modules into the > emacs tree? That's impractical, and probably won't happen, at least in the near future. Those modules are developed by their own teams, unrelated to Emacs.