summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorYuan Fu <casouri@gmail.com>2022-12-24 22:08:17 -0800
committerYuan Fu <casouri@gmail.com>2022-12-25 01:11:47 -0800
commit79584a206b9b36e4937c32845464bfc9b438dade (patch)
treea3b7f8cc5517318b32d7e445398f38fe83ff00dc /lisp/emacs-lisp
parenta819ca5a93c56f7647940f6e8ef05503eecf4e9e (diff)
downloademacs-79584a206b9b36e4937c32845464bfc9b438dade.tar.gz
emacs-79584a206b9b36e4937c32845464bfc9b438dade.tar.bz2
emacs-79584a206b9b36e4937c32845464bfc9b438dade.zip
Further generalize treesit-defun functions
Two new functions, treesit-beginning/end-of-thing. And treesit-thing-at-point's signature changes. * lisp/treesit.el (treesit-block-type-regexp): New variable. (treesit-beginning-of-thing) (treesit-end-of-thing): Generalized from treesit-beginning/end-of-defun. (treesit-beginning-of-defun) (treesit-end-of-defun): Use the new functions. (treesit-thing-at-point): Accept PATTERN rather than REGEXP and PRED. (treesit-defun-at-point): Adjust for the new signature of treesit-thing-at-point.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions