From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter integration on feature/tree-sitter Date: Sat, 07 May 2022 21:02:26 +0200 Message-ID: <87k0axqi7x.fsf@thornhill.no> References: <9E6D13F6-7E50-44EE-A357-C971A11A3636@gmail.com> <837d6xzpac.fsf@gnu.org> <87a6btelet.fsf@thornhill.no> <66C72181-D168-4BEE-AB06-FB3CFDCC3D51@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33408"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 07 21:03:47 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 1nnPiU-0008TF-7C for ged-emacs-devel@m.gmane-mx.org; Sat, 07 May 2022 21:03:46 +0200 Original-Received: from localhost ([::1]:54376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnPiS-0003m5-G4 for ged-emacs-devel@m.gmane-mx.org; Sat, 07 May 2022 15:03:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnPhJ-00035e-TJ for emacs-devel@gnu.org; Sat, 07 May 2022 15:02:33 -0400 Original-Received: from out2.migadu.com ([2001:41d0:2:aacc::]:21411) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnPhI-0000wv-Dv; Sat, 07 May 2022 15:02:33 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1651950148; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PqPekhJ470wmFAY3Sx5gpaDMDHSUQ3DCNGv9q2jlxP0=; b=VwNkZXARwp9kf6cgAt2dwtNOOzPfkw/tYgdNDcCFkep7l3LEvasvL+3E5dSetqIRPOnLIm gAEOKKNuTURVuFFKQPpEoaobX0YxN0TWb/usgsTNOAVSC+XjiH9AUAnH7JwUk0Ll5zfnqx fyCt4WvwtpdtPES4GxfpmlqY4SKOjxqHhQcgvmrfhMPLs+/O1UgjavFH25/yNMeIeCfA+u Lwk7j2k2S6C34mQ65xn6mdtcce57C8rG4DxFv6QyTOV+Ew9Gu1VgnbGvqYem7wCdfkV8cx k27C4RkBfd3pCoBopYqm5sCRAx63DR5s8dPfrRYYA4mjpMbxfiU0W42Uw4PK3g== In-Reply-To: <66C72181-D168-4BEE-AB06-FB3CFDCC3D51@gmail.com> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: thornhill.no Received-SPF: pass client-ip=2001:41d0:2:aacc::; envelope-from=theo@thornhill.no; helo=out2.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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:289427 Archived-At: > So now 'tree-sitter-c should be 'c. > Right, I discovered that quickly :) >> >> To make this work you need the definition compiled and put on some path >> that emacs can see. The suggested one is LD_LIBRARY_PATH, and I start >> emacs using something like this: >> >> ``` >> LD_LIBRARY_PATH=/home/theo/src/tree-sitter-module/dist /path/to/tree-sitter-enabled-emacs/src/emacs >> ``` > > Now you can use tree-sitter-extra-load-path > Thanks! > > Now you should use treesit- prefix. > Yeah - thanks :) Theodor