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: How to add pseudo vector types Date: Thu, 15 Jul 2021 09:39:16 +0300 Message-ID: <83h7gw6pyj.fsf@gnu.org> References: <84B70E9B-E1E5-40D3-AFBE-033CACF15914@gmail.com> <82443C84-A4C8-4FD2-AD08-C317416CA709@gmail.com> <9F1D903D-0BD2-44F5-B83C-4E9F3D12AC85@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1789"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 15 08:41:09 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 1m3v3V-0000HP-BY for ged-emacs-devel@m.gmane-mx.org; Thu, 15 Jul 2021 08:41:09 +0200 Original-Received: from localhost ([::1]:42706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3v3U-0006Mq-Dp for ged-emacs-devel@m.gmane-mx.org; Thu, 15 Jul 2021 02:41:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57010) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3v1x-0005g0-WB for emacs-devel@gnu.org; Thu, 15 Jul 2021 02:39:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38446) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3v1x-0005Jr-9Z; Thu, 15 Jul 2021 02:39:33 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3955 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 1m3v1w-0007uD-Po; Thu, 15 Jul 2021 02:39:33 -0400 In-Reply-To: <9F1D903D-0BD2-44F5-B83C-4E9F3D12AC85@gmail.com> (message from Yuan Fu on Wed, 14 Jul 2021 22:48:30 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:271237 Archived-At: > From: Yuan Fu > Date: Wed, 14 Jul 2021 22:48:30 -0400 > Cc: emacs-devel > > I defined two pseudo vectors for tree-sitter's parser and node and packaged a dynamic module for tree-sitter’s json language definition. I also wrapped a few tree-sitter functions just to test if everything works. Please have a look. I’m sure there are some problems because I mainly wrote by copy, paste and modifying from other code I found in Emacs source. Thanks, but why does it parse only strings, not buffer text?