]> git.eshelyaron.com Git - emacs.git/commit
New treesit thing 'sexp-list' (bug#73404)
authorJuri Linkov <juri@linkov.net>
Thu, 19 Dec 2024 07:27:28 +0000 (09:27 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 15:15:32 +0000 (16:15 +0100)
commitbb7534bfdd5fc6ff103e078294abbfbdff10151d
tree45a515e45e8e0d6e0528fa2756d850cdf05d7c46
parent47c73a8503dd1e73ff28ed031ad640cd59ed6748
New treesit thing 'sexp-list' (bug#73404)

* lisp/treesit.el (treesit-forward-list): New command.
(treesit-forward-sexp): Check the thing 'text' only when
'treesit-sexp-type-regexp' is nil.
(treesit-forward-sexp-list): New function.
(treesit-navigate-thing): Don't try moving to parent
when thing is 'sexp-list'.
(treesit-major-mode-setup): Set 'forward-sexp-function' to
'treesit-forward-sexp-list' when the 'sexp-list' thing is defined.

(cherry picked from commit d930d7f8651897dc3130ff16731751691566d490)
etc/NEWS
lisp/treesit.el