]> git.eshelyaron.com Git - emacs.git/commit
Use the new tree-sitter commands
authorYuan Fu <casouri@gmail.com>
Fri, 16 Dec 2022 01:44:07 +0000 (17:44 -0800)
committerYuan Fu <casouri@gmail.com>
Fri, 16 Dec 2022 01:44:07 +0000 (17:44 -0800)
commitcb761eb7ac4197706658a68bb853c3fc8909d84e
tree57e99afdf7c1c19d41b7e890a582144ce262901e
parent037407ad95a55df900bd508ca3c44499735d7c2a
Use the new tree-sitter commands

* lisp/progmodes/c-ts-mode.el (c-ts-mode--defun-valid-p)
(c-ts-mode--defun-skipper): New functions.
(c-ts-base-mode): Setup defun navigation.
* lisp/progmodes/sh-script.el (bash-ts-mode): Setup defun navigation.
* lisp/treesit.el (treesit-beginning-of-defun)
(treesit-end-of-defun): Change to new implementation, which is
intended to be used as commands.
(treesit-major-mode-setup): Setup remap for beginning/end-of-defun
commands.
lisp/progmodes/c-ts-mode.el
lisp/progmodes/sh-script.el
lisp/treesit.el