]> git.eshelyaron.com Git - emacs.git/commit
Add 'treesit-sexp-thing' to use instead of 'treesit-sexp-type-regexp'.
authorJuri Linkov <juri@linkov.net>
Thu, 12 Jun 2025 17:22:42 +0000 (20:22 +0300)
committerEshel Yaron <me@eshelyaron.com>
Wed, 18 Jun 2025 08:12:30 +0000 (10:12 +0200)
commit30e66532da4d31a98c5056fc08876c017fb65203
treefb74fa573a1dfa57a063296c3ded80fd71332d3a
parent90c30cff888f3225bba9672cc82191f59198e3b0
Add 'treesit-sexp-thing' to use instead of 'treesit-sexp-type-regexp'.

* lisp/treesit.el (treesit-sexp-thing): New variable to use
instead of 'treesit-sexp-type-regexp'.
(treesit-sexp-thing-down-list): Rename from 'treesit-sexp-type-down-list'.
(treesit-sexp-thing-up-list): Rename from 'treesit-sexp-type-up-list'.
(treesit-forward-sexp, treesit--forward-list-with-default)
(treesit-down-list, treesit-up-list): Update references to the
above variables.
(treesit-cycle-sexp-thing): Rename from 'treesit-cycle-sexp-type'.

* lisp/progmodes/elixir-ts-mode.el (elixir-ts-mode): Update same variables.

* lisp/progmodes/heex-ts-mode.el (heex-ts-mode): Set these variables
instead of calling the function that sets them.

* lisp/progmodes/python.el (python-ts-mode): Check if variables
'treesit-sentence-type-regexp' and 'treesit-sexp-type-regexp' are bound.

https://lists.gnu.org/archive/html/emacs-devel/2025-06/msg00182.html
(cherry picked from commit 76f422da26b09a5d2646c0597871423f019a9573)
lisp/progmodes/elixir-ts-mode.el
lisp/progmodes/heex-ts-mode.el
lisp/progmodes/python.el
lisp/treesit.el