summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/trace.el
diff options
context:
space:
mode:
authorYuan Fu <casouri@gmail.com>2022-12-24 20:17:08 -0800
committerYuan Fu <casouri@gmail.com>2022-12-25 01:11:47 -0800
commita819ca5a93c56f7647940f6e8ef05503eecf4e9e (patch)
tree5e42727245e5b9167c9a47e7fd44e0543e3c550f /lisp/emacs-lisp/trace.el
parente8b34109eeb136bdab5b970600214cf1fc92ca0c (diff)
downloademacs-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