]> git.eshelyaron.com Git - emacs.git/commit
Don't skip nested defuns in python-ts-mode defun navigation
authorYuan Fu <casouri@gmail.com>
Wed, 23 Nov 2022 20:08:47 +0000 (12:08 -0800)
committerYuan Fu <casouri@gmail.com>
Wed, 23 Nov 2022 21:27:56 +0000 (13:27 -0800)
commit936831579490c2e2a057298f5f915465fbb116d8
treeef2acb2ec1da7c873c7a80b8076d8b44f62e41c3
parent6785273a8251a2d3dc0450264196f3f19f6403bc
Don't skip nested defuns in python-ts-mode defun navigation

This fixes bug#59495.

Before this change, python tries to skip nested function
definition. Now we don't skip any nested defun.

* lisp/progmodes/python.el (python-treesit-beginning-of-defun)
(python-treesit-end-of-defun): Remove functions.
* lisp/progmodes/python.el (python-ts-mode): Use tree-sitter's default
navigation function.
lisp/progmodes/python.el