summaryrefslogtreecommitdiff
path: root/doc/lispref/positions.texi
diff options
context:
space:
mode:
authorYuan Fu <casouri@gmail.com>2022-09-24 19:29:15 -0700
committerYuan Fu <casouri@gmail.com>2022-09-24 21:11:30 -0700
commitc957832cbf3e87e5a25f7c2bdb70abd959391d98 (patch)
treedbe2a0f5db635964494e8e92fee2b227408c44cd /doc/lispref/positions.texi
parent1575ee2eeb1ebb5b73b4b76fc7dc7f5702748540 (diff)
downloademacs-c957832cbf3e87e5a25f7c2bdb70abd959391d98.tar.gz
emacs-c957832cbf3e87e5a25f7c2bdb70abd959391d98.tar.bz2
emacs-c957832cbf3e87e5a25f7c2bdb70abd959391d98.zip
Remove treesit-traverse functions
Remove before adding the replacements. * doc/lispref/parsing.texi (Retrieving Node): Remove relevant sections. * lisp/treesit.el (treesit-traverse-depth-first) (treesit--traverse-breadth-first-1) (treesit-traverse-breadth-first) (treesit-next-sibling-or-up) (treesit-traverse-forward) (treesit-search-forward) (treesit-search-beginning): (treesit-search-end): Remove functions. (treesit-defun-query): Remove variable. (treesit-beginning-of-defun) (treesit-end-of-defun): Remove functions. * test/src/treesit-tests.el: Remove comments.
Diffstat (limited to 'doc/lispref/positions.texi')
-rw-r--r--doc/lispref/positions.texi26
1 files changed, 0 insertions, 26 deletions
diff --git a/doc/lispref/positions.texi b/doc/lispref/positions.texi
index 809ac207d24..7945232bf8f 100644
--- a/doc/lispref/positions.texi
+++ b/doc/lispref/positions.texi
@@ -834,32 +834,6 @@ a defun. The function @code{end-of-defun} calls this function instead
of using its normal method.
@end defvar
-When tree-sitter support is available (@pxref{Parsing Program
-Source}), Emacs can find the beginning and end of a function according
-to the syntax tree.
-
-@defvar treesit-defun-query
-Set this variable to a tree-sitter query that matches defun
-definitions, then @code{treesit-beginning-of-defun} and
-@code{treesit-end-of-defun} can find the beginning and end of a defun.
-
-Make sure to use a compiled query for this variable, otherwise
-@code{treesit-beginning-of-defun} and @code{treesit-end-of-defun} will
-be very slow.
-@end defvar
-
-@defun treesit-beginning-of-defun &optional arg
-This function finds the beginning of a defun according to
-@var{treesit-defun-query}. This function is suitable for the value of
-@var{beginning-of-defun-function}.
-@end defun
-
-@defun treesit-end-of-defun &optional arg
-This function finds the end of a defun according to
-@var{treesit-defun-query}. This function is suitable for the value of
-@var{end-of-defun-function}.
-@end defun
-
@node Skipping Characters
@subsection Skipping Characters
@cindex skipping characters