]> git.eshelyaron.com Git - emacs.git/commit
Improve treesit settings for python-ts-mode (bug#73404).
authorJuri Linkov <juri@linkov.net>
Wed, 25 Jun 2025 16:57:05 +0000 (19:57 +0300)
committerEshel Yaron <me@eshelyaron.com>
Wed, 23 Jul 2025 19:18:55 +0000 (21:18 +0200)
commit15301a42b5257996882b36f7d4023be5f1cd87ed
tree6b44be9720a5ba304d68a9fac9d5343f6167f1ac
parent024a1f1051c4d048effb160b8bea915e62a45378
Improve treesit settings for python-ts-mode (bug#73404).

* lisp/progmodes/python.el (python--thing-settings):
For the 'sexp' thing use all nodes except top-level
grouping nodes, comments and parens.  Add the 'list' thing.
(python-ts-mode): Use setq-local for treesit-thing-settings.
Modify 'forward-sexp-function' and 'treesit-sexp-thing'
after calling 'treesit-major-mode-setup'.

(cherry picked from commit f3c755129f7d77bd6e18f5005f3c4034c170ea25)
lisp/progmodes/python.el