all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#60651: 30.0.50; tree-sitter: `ts_node_is_named` is missing.
@ 2023-01-08 10:33 Mickey Petersen
  2023-01-09  3:24 ` Yuan Fu
  0 siblings, 1 reply; 3+ messages in thread
From: Mickey Petersen @ 2023-01-08 10:33 UTC (permalink / raw)
  To: 60651


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.



In GNU Emacs 30.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version
 3.24.20, cairo version 1.16.0) of 2023-01-02 built on mickey-work
Repository revision: c209802f7b3721a1b95113290934a23fee88f678
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12013000
System Description: Ubuntu 20.04.3 LTS

Configured using:
 'configure --with-native-compilation --with-json --with-mailutils
 --without-compress-install --with-imagemagick CC=gcc-10'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ
IMAGEMAGICK JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2
M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP
SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE
XIM XINPUT2 XPM GTK3 ZLIB






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#60651: 30.0.50; tree-sitter: `ts_node_is_named` is missing.
  2023-01-08 10:33 bug#60651: 30.0.50; tree-sitter: `ts_node_is_named` is missing Mickey Petersen
@ 2023-01-09  3:24 ` Yuan Fu
  2023-01-09  9:02   ` Mickey Petersen
  0 siblings, 1 reply; 3+ messages in thread
From: Yuan Fu @ 2023-01-09  3:24 UTC (permalink / raw)
  To: Mickey Petersen; +Cc: 60651


Mickey Petersen <mickey@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".

Yuan





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#60651: 30.0.50; tree-sitter: `ts_node_is_named` is missing.
  2023-01-09  3:24 ` Yuan Fu
@ 2023-01-09  9:02   ` Mickey Petersen
  0 siblings, 0 replies; 3+ messages in thread
From: Mickey Petersen @ 2023-01-09  9:02 UTC (permalink / raw)
  To: Yuan Fu; +Cc: 60651


Yuan Fu <casouri@gmail.com> writes:

> Mickey Petersen <mickey@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






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-09  9:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-08 10:33 bug#60651: 30.0.50; tree-sitter: `ts_node_is_named` is missing Mickey Petersen
2023-01-09  3:24 ` Yuan Fu
2023-01-09  9:02   ` Mickey Petersen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.