mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-06 11:50:51 -08:00
Revert "New function treesit-parser-changed-ranges"
This reverts commit996b957671. For reason see760b54de08.
This commit is contained in:
parent
24b7bf2746
commit
2ee3edce3f
4 changed files with 4 additions and 86 deletions
|
|
@ -540,26 +540,6 @@ symbol, rather than a lambda function.
|
|||
This function returns the list of @var{parser}'s notifier functions.
|
||||
@end defun
|
||||
|
||||
Sometimes a Lisp program might need to synchronously get the changed
|
||||
ranges of the last reparse. The function
|
||||
@code{treesit-parser-changed-ranges} exists for this purpose. It
|
||||
returns the ranges which were passed to the notifier functions.
|
||||
|
||||
@defun treesit-parser-changed-ranges parser &optional quiet
|
||||
This function returns the ranges that has been changed since last
|
||||
reparse. It returns a list of cons cells of the form
|
||||
@w{@code{(@var{start} . @var{end})}}, where @var{start} and @var{end}
|
||||
mark the start and the end positions of a range.
|
||||
|
||||
This function should almost always be called immediately after
|
||||
reparsing. If it's called when there are new buffer edits that hasn't
|
||||
been reparsed, Emacs signals the @code{treesit-unparsed-edits} error,
|
||||
unless the optional argument @var{quiet} is non-nil.
|
||||
|
||||
Calling this function multiple times consecutively doesn't change its
|
||||
return value; it always returns the ranges affected by the last reparse.
|
||||
@end defun
|
||||
|
||||
@node Retrieving Nodes
|
||||
@section Retrieving Nodes
|
||||
@cindex retrieve node, tree-sitter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue