From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fu Yuan Newsgroups: gmane.emacs.devel Subject: Re: How to add pseudo vector types Date: Thu, 15 Jul 2021 09:37:27 -0400 Message-ID: <45EBF16A-C953-42C7-97D1-3A2BFEF7DD01@gmail.com> References: <83h7gw6pyj.fsf@gnu.org> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27682"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 15 15:38:31 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 1m41ZP-00070T-9g for ged-emacs-devel@m.gmane-mx.org; Thu, 15 Jul 2021 15:38:31 +0200 Original-Received: from localhost ([::1]:60390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m41ZO-00062H-0i for ged-emacs-devel@m.gmane-mx.org; Thu, 15 Jul 2021 09:38:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m41YT-0005Me-4y for emacs-devel@gnu.org; Thu, 15 Jul 2021 09:37:33 -0400 Original-Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]:44629) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m41YR-0002TY-Ol; Thu, 15 Jul 2021 09:37:32 -0400 Original-Received: by mail-qk1-x72b.google.com with SMTP id 77so5132897qkk.11; Thu, 15 Jul 2021 06:37:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=8HFcQHsSYmLE0teDGQiFdR2EsQaVaUSoRQFtHXh2fzY=; b=snz8hixwWdWtBLGl0MNG4gF0AmR/v9vldFrRMMsfxw2lKbWFKjB/lImb7ko8DC+YGH pjgCopyaCE7F1cjFygQFgviJZSabCCrBZyHXFV3AaBbauVdOtpeiqwn1cQzlseAlwAHb 4kTnM5RZ3NghJd+0kalMQ3Mv/6UE4PhpP9bQOqtsRT6vi/PavkGwRWytlpA8xrei5qE2 w/SjKYXADI5RBRLktN7RkUXx29stpp6bo1gWV2IvnIIDo/dNsQ0ueUCytl1zpnfH4gJg 6XkG8wQeL4/bum+0pLxoi7fvqZoPP6ShQtjEB3lYKJa6QFTm78QXKdk+IWPj/oGKjuQA 6c/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=8HFcQHsSYmLE0teDGQiFdR2EsQaVaUSoRQFtHXh2fzY=; b=NzJJjuTDgoZE/x/nadkmUn/MM2Tvg31OMsstwjDQPul2EkNBZJhACCmPQ77n7WsLne MgoqKLjvMDsUiEuJA4ka5wA0a4/kchBTxtywKUxBzj88CIo5h0uUFmaVZwfE3LdPp0cd MqArKGCPlm9iJyHeln0L9Ig4FttNTXnEHoVX9FO8VZOY2eq3D7OBCAz/mpZGMTsHPCDI Sq42l7iNJ9OivL5nR1Xk5xUbaaxWl9t7bAVldsUqFpk1ueh3FFb1UgYAUK6FpBT5md2m i898pYFESa/urPdMY8FPpZE+6xBUoRKD45HnpuDkcX2OPTqEw7ImSf6+7e4empNH+6Z2 MgQg== X-Gm-Message-State: AOAM5308lzy9C5/fTMmcJp2hbGJo1hUpy4lvJjudx5a6hOXXt5oKQjZj PddDD4CSUUhfWNdigiWDvaM= X-Google-Smtp-Source: ABdhPJx5tR5yU/bFArYbRevAnOUgjlZTkZiSYcfNUsFWoymgC7XuHoXmyo7u/hG5MmjOQlHUbQFoUw== X-Received: by 2002:a05:620a:4003:: with SMTP id h3mr4063570qko.129.1626356250103; Thu, 15 Jul 2021 06:37:30 -0700 (PDT) Original-Received: from ?IPv6:2601:98a:4200:9210:408a:6c28:9681:5783? ([2601:98a:4200:9210:408a:6c28:9681:5783]) by smtp.gmail.com with ESMTPSA id j3sm2442159qka.96.2021.07.15.06.37.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Jul 2021 06:37:29 -0700 (PDT) In-Reply-To: <83h7gw6pyj.fsf@gnu.org> X-Mailer: iPhone Mail (17H35) Received-SPF: pass client-ip=2607:f8b0:4864:20::72b; envelope-from=casouri@gmail.com; helo=mail-qk1-x72b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:271244 Archived-At: > =E5=9C=A8 2021=E5=B9=B47=E6=9C=8815=E6=97=A5=EF=BC=8C=E4=B8=8A=E5=8D=882:3= 9=EF=BC=8CEli Zaretskii =E5=86=99=E9=81=93=EF=BC=9A >=20 > =EF=BB=BF >>=20 >> From: Yuan Fu >> Date: Wed, 14 Jul 2021 22:48:30 -0400 >> Cc: emacs-devel >>=20 >> I defined two pseudo vectors for tree-sitter's parser and node and packag= ed a dynamic module for tree-sitter=E2=80=99s json language definition. I al= so wrapped a few tree-sitter functions just to test if everything works. Ple= ase have a look. I=E2=80=99m sure there are some problems because I mainly w= rote by copy, paste and modifying from other code I found in Emacs source. >=20 > Thanks, but why does it parse only strings, not buffer text? I haven=E2=80=99t written it yet. I want to make sure the pseudo vector defi= nition and configure files are right before going further. IIRC the contribu= tion guide recommends sending small patches and update along the way. Yuan=