diff options
author | Yuan Fu <casouri@gmail.com> | 2022-12-24 20:17:08 -0800 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2022-12-25 01:11:47 -0800 |
commit | a819ca5a93c56f7647940f6e8ef05503eecf4e9e (patch) | |
tree | 5e42727245e5b9167c9a47e7fd44e0543e3c550f /lisp/emacs-lisp/trace.el | |
parent | e8b34109eeb136bdab5b970600214cf1fc92ca0c (diff) | |
download | emacs-a819ca5a93c56f7647940f6e8ef05503eecf4e9e.tar.gz emacs-a819ca5a93c56f7647940f6e8ef05503eecf4e9e.tar.bz2 emacs-a819ca5a93c56f7647940f6e8ef05503eecf4e9e.zip |
Generalize treesit-defun functions to "things"
Change the "defun" in some functions (e.g. treesit--defuns-around) to
"thing". Add a function treesit-thing-at-point.
* lisp/treesit.el (treesit--thing-unpack-pattern): New subroutine.
(treesit-beginning-of-defun)
(treesit-end-of-defun): Use new function treesit--navigate-thing.
(treesit--defuns-around): Generalize into treesit--thing-around.
(treesit--top-level-defun): Generalize into treesit--top-level-thing.
(treesit--navigate-defun): Generalize into treesit--navigate-thing.
(treesit-thing-at-point): Generalized from treesit-defun-at-point.
(treesit-defun-at-point): Use treesit-thing-at-point to do tht work.
Diffstat (limited to 'lisp/emacs-lisp/trace.el')
0 files changed, 0 insertions, 0 deletions