1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-03 14:10:47 -08:00
emacs/doc
Yuan Fu 9874561f39
Fix treesit-node-field-name and friends (bug#66674)
So turns out ts_node_field_name_for_child takes a named node index,
but we were passing it normal index that counts both named and
anonymous nodes.  That's what makes the field name all wrong in
treesit explorer.

* doc/lispref/parsing.texi:
(Accessing Node Information): Update docstring.
* lisp/treesit.el (treesit-node-index): Add some unrelated comment.
(treesit-node-field-name): Get named node index rather than all node
index.
* src/treesit.c (Ftreesit_node_field_name_for_child): Update
docstring, use ts_node_named_child_count.
2023-12-10 16:28:21 -08:00
..
emacs ; Fix typos in ChangeLog files 2023-12-10 12:38:19 +01:00
lispintro ; Fix typos 2023-12-03 23:31:30 +01:00
lispref Fix treesit-node-field-name and friends (bug#66674) 2023-12-10 16:28:21 -08:00
man * doc/man/emacsclient.1: Fix --tramp option. 2023-10-25 12:24:34 +02:00
misc ; Fix typos 2023-12-10 12:39:54 +01:00