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 integration in python.el Date: Tue, 04 Oct 2022 15:33:40 +0300 Message-ID: <83sfk3vkd7.fsf@gnu.org> References: <3A68545C-2E40-4BB4-8563-8041A5452634@gmail.com> <87y1twlr0v.fsf@gmail.com> <83czb8ycpo.fsf@gnu.org> <87tu4klfcw.fsf@gmail.com> <83sfk4w1yu.fsf@gnu.org> <877d1fhm0m.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20206"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, emacs-devel@gnu.org To: Matthias Meulien Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 04 14:35:18 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 1ofh8o-00054Z-Hn for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Oct 2022 14:35:18 +0200 Original-Received: from localhost ([::1]:38402 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofh8n-0005Jf-IG for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Oct 2022 08:35:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofh7O-0003lF-Tc for emacs-devel@gnu.org; Tue, 04 Oct 2022 08:33:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51612) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofh7N-0004YB-71; Tue, 04 Oct 2022 08:33:50 -0400 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=wCrZOzAV28mmSzw8slKR/ri+xP9eFDzd1hF0iA2SZ/g=; b=h/OJNLVI2CHh HatnNY6miWvFYpGTY5JyyLgYdG4zcaDIR9U54pOHkytUu/EAS7VPB+rSRyre0m3nUjwwGeA9OOc8i WxPCvqeg6hNMHHaTAkgixmQVEX+g5/G3sNIajmH7XVx1Auv+DHq0vVOhFoAr4y05fZl9NJhOfHB29 gKJ4GiuZ7n5criew1qlJtcaNgBh2VYvKi9hlOTujEXvtYfjdvQnNs5aUcSWTpkh+aaLOdrI+LHFHQ RCgWAh+B1JR5VyQ0Yts0hDiakRcEjjDwg5NKg//TC2dSBJazxzLKc57HNujfWLsQ4ZydR6/XXdrDt 8Y/1TwR6HaSZot6hTfP1kQ==; Original-Received: from [87.69.77.57] (port=4409 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 1ofh7H-0005g0-Uu; Tue, 04 Oct 2022 08:33:48 -0400 In-Reply-To: <877d1fhm0m.fsf@gmail.com> (message from Matthias Meulien on Tue, 04 Oct 2022 13:21:45 +0200) 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:296877 Archived-At: > From: Matthias Meulien > Cc: casouri@gmail.com, emacs-devel@gnu.org > Date: Tue, 04 Oct 2022 13:21:45 +0200 > > Eli Zaretskii writes: > > > (...) Would you please share the changes you made, FTR? Then others > > who face the same problem could easily find the solution. TIA. > > Sure, but let me make clear that it's an unclean hack and using > https://github.com/casouri/tree-sitter-module may prove to be more > robust. Understood, thanks. > diff --unified tree-sitter-ruby/Makefile tree-sitter-python/Makefile > --- tree-sitter-ruby/Makefile 2022-10-03 23:01:34.963750322 +0200 > +++ tree-sitter-python/Makefile 2022-10-04 13:06:46.014817832 +0200 > @@ -31,7 +31,7 @@ > ifeq (, $(CPPSRC)) > ADDITIONALLIBS := > else > - ADDITIONALLIBS := -lc++ > + ADDITIONALLIBS := > endif Any reason why you needed to use the C++ compiler?