diff options
author | Yuan Fu <casouri@gmail.com> | 2022-12-24 16:33:35 -0800 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2022-12-24 18:43:03 -0800 |
commit | f8e219ebfaa286f4e7240640799020bb5b6e07b3 (patch) | |
tree | 4fee13cc056a43bcf227dc95983842d89445e64b /lisp/progmodes/java-ts-mode.el | |
parent | 35c2ca2ca64070f6ebc75011e5e6e2d688124bec (diff) | |
download | emacs-f8e219ebfaa286f4e7240640799020bb5b6e07b3.tar.gz emacs-f8e219ebfaa286f4e7240640799020bb5b6e07b3.tar.bz2 emacs-f8e219ebfaa286f4e7240640799020bb5b6e07b3.zip |
Add treesit-defun-name and friends
1. We now have treesit-defun-name, powered by
treesit-defun-name-function.
2. We now have treesit-add-log-current-defun, which powers
add-log-current-defun.
3. c-ts-mode updates its code to take advantage of these new features.
4. Manual updates.
* doc/lispref/parsing.texi (Tree-sitter major modes): Add manual for
new functions.
* lisp/progmodes/c-ts-mode.el (c-ts-mode--defun-name): New function.
(c-ts-mode--imenu-1): Extract out into c-ts-mode--defun-name.
(c-ts-base-mode): Setup treesit-defun-name-function.
* lisp/treesit.el (treesit-defun-name-function)
(treesit-add-log-defun-delimiter): New variables.
(treesit-defun-at-point)
(treesit-defun-name): New functions.
(treesit-major-mode-setup): Setup add-log-current-defun-function.
Diffstat (limited to 'lisp/progmodes/java-ts-mode.el')
0 files changed, 0 insertions, 0 deletions