diff options
| author | Yuan Fu | 2022-10-23 18:47:02 -0700 |
|---|---|---|
| committer | Yuan Fu | 2022-10-23 18:47:02 -0700 |
| commit | c120b0ebdb20cfff73dd1d43541f1ba1bbc54b74 (patch) | |
| tree | ddbe737251d739fa25aa50d2a57078afcd2c9de5 /lisp/progmodes/python.el | |
| parent | 6cf2a9c55dbf8dfbc93409340065cf02881502b1 (diff) | |
| download | emacs-c120b0ebdb20cfff73dd1d43541f1ba1bbc54b74.tar.gz emacs-c120b0ebdb20cfff73dd1d43541f1ba1bbc54b74.zip | |
Fix treesit-beginning/end-of-defun
Now they always move to the top-level defun (i.e., skips nested ones).
* lisp/treesit.el (treesit--find-top-level-match): New function
(treesit-beginning-of-defun): Goes to the top-level match.
(treesit-end-of-defun): Simply move to the end of current match.
Diffstat (limited to 'lisp/progmodes/python.el')
0 files changed, 0 insertions, 0 deletions