Re: emacs-31 29bbd02347d: Fix treesit_cursor_helper_1 for zero-width nodes (bug#81436)
Eli Zaretskii <[email protected]> Mon, 27 Jul 2026 22:17:09 +0300
| Newsgroups | gmane.emacs.devel |
|---|---|
| Message-ID | <[email protected]> |
> From: Michael Albinus <[email protected]> > Cc: Yuan Fu <[email protected]> > Date: Mon, 27 Jul 2026 18:19:03 +0200 > > Yuan Fu <[email protected]> writes: > > Hi, > > > branch: emacs-31 > > commit 29bbd02347da44599cc9778d9d626fc5c8ca4b2e > > Author: Yuan Fu <[email protected]> > > Commit: Yuan Fu <[email protected]> > > > > Fix treesit_cursor_helper_1 for zero-width nodes (bug#81436) > > > > * lisp/treesit.el (treesit--some): Add edebug declare. > > * src/treesit.c (treesit_cursor_helper_1): Don't use > > ts_tree_cursor_goto_first_child_for_byte for zero-width nodes. > > I'm not sure whether it was *this* commit. However, tree-sitter tests on > emba fail now: It's definitely that commit. On my system, the test crashes due to infinite recursion. I tried to fix that now. Yuan, please see if I got the logic right.