GNU bug report logs - #60651
30.0.50; tree-sitter: `ts_node_is_named` is missing.

Previous Next

Package: emacs;

Reported by: Mickey Petersen <mickey <at> masteringemacs.org>

Date: Sun, 8 Jan 2023 10:40:02 UTC

Severity: normal

Found in version 30.0.50

Fixed in version 29.1

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 60651 <at> debbugs.gnu.org (full text, mbox):

From: Mickey Petersen <mickey <at> masteringemacs.org>
To: Yuan Fu <casouri <at> gmail.com>
Cc: 60651 <at> debbugs.gnu.org
Subject: Re: bug#60651: 30.0.50; tree-sitter: `ts_node_is_named` is missing.
Date: Mon, 09 Jan 2023 09:02:13 +0000
Yuan Fu <casouri <at> gmail.com> writes:

> Mickey Petersen <mickey <at> masteringemacs.org> writes:
>
>> The tree-sitter C library function `ts_node_is_named' is not exposed
>> to Emacs from what I can see:
>>
>> https://tree-sitter.github.io/tree-sitter/using-parsers#named-vs-anonymous-nodes
>>
>> Thanks.
>
> You can use treesit-node-check. In general, if there is a C function
> that you want to use, you can check the manual for a correspondence
> listing. It’s in "Tree-sitter C API".
>

Ah, right. I did not know you'd rolled it into one handy function. Thanks, Yuan! Issue closed :)

> Yuan





This bug report was last modified 2 years and 127 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.