]> git.eshelyaron.com Git - emacs.git/commit
Improve treesit-forward-sexp-list, treesit-down-list, treesit-up-list
authorJuri Linkov <juri@linkov.net>
Mon, 30 Dec 2024 18:07:40 +0000 (20:07 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 4 Jan 2025 20:26:16 +0000 (21:26 +0100)
commit6af59ddd09a0f9988b685ffc363719c8af96cf40
tree97432f721a89ab2d5046e68dfb7e97b45daa684a
parent847dc8abd0de4402b661b48d3cfde5a3cce25ee0
Improve treesit-forward-sexp-list, treesit-down-list, treesit-up-list

* lisp/treesit.el (treesit-forward-sexp-list): Rewrite to support
the value of ARG more than 1.  In this case every step moves forward
either over the next treesit-based list or over the syntax-based symbol.
(treesit-down-list, treesit-up-list): Rewrite to support the fallback
to the syntax-based navigation while inside the treesit-based list.
Also use a loop for ARG more than 1 (bug#73404).

(cherry picked from commit 687ff86e802c9883f292f58a890178d08311a821)
lisp/treesit.el