diff options
| author | Yuan Fu | 2024-06-04 19:55:33 -0700 |
|---|---|---|
| committer | Yuan Fu | 2024-06-04 21:44:05 -0700 |
| commit | 2ee3edce3f5de55fc11997f522cbe2f00a4471fd (patch) | |
| tree | e11f3bb48934012f6100737e2f9d8a56785bcf76 /doc | |
| parent | 24b7bf2746fd7bf097e04c5b9363cab197edbc7c (diff) | |
| download | emacs-2ee3edce3f5de55fc11997f522cbe2f00a4471fd.tar.gz emacs-2ee3edce3f5de55fc11997f522cbe2f00a4471fd.zip | |
Revert "New function treesit-parser-changed-ranges"
This reverts commit 996b9576713f9d63ea7ff7e9630a15cb0a0214eb.
For reason see 760b54de080.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/parsing.texi | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/doc/lispref/parsing.texi b/doc/lispref/parsing.texi index 35ee5cc648d..645aad94a63 100644 --- a/doc/lispref/parsing.texi +++ b/doc/lispref/parsing.texi | |||
| @@ -540,26 +540,6 @@ symbol, rather than a lambda function. | |||
| 540 | This function returns the list of @var{parser}'s notifier functions. | 540 | This function returns the list of @var{parser}'s notifier functions. |
| 541 | @end defun | 541 | @end defun |
| 542 | 542 | ||
| 543 | Sometimes a Lisp program might need to synchronously get the changed | ||
| 544 | ranges of the last reparse. The function | ||
| 545 | @code{treesit-parser-changed-ranges} exists for this purpose. It | ||
| 546 | returns the ranges which were passed to the notifier functions. | ||
| 547 | |||
| 548 | @defun treesit-parser-changed-ranges parser &optional quiet | ||
| 549 | This function returns the ranges that has been changed since last | ||
| 550 | reparse. It returns a list of cons cells of the form | ||
| 551 | @w{@code{(@var{start} . @var{end})}}, where @var{start} and @var{end} | ||
| 552 | mark the start and the end positions of a range. | ||
| 553 | |||
| 554 | This function should almost always be called immediately after | ||
| 555 | reparsing. If it's called when there are new buffer edits that hasn't | ||
| 556 | been reparsed, Emacs signals the @code{treesit-unparsed-edits} error, | ||
| 557 | unless the optional argument @var{quiet} is non-nil. | ||
| 558 | |||
| 559 | Calling this function multiple times consecutively doesn't change its | ||
| 560 | return value; it always returns the ranges affected by the last reparse. | ||
| 561 | @end defun | ||
| 562 | |||
| 563 | @node Retrieving Nodes | 543 | @node Retrieving Nodes |
| 564 | @section Retrieving Nodes | 544 | @section Retrieving Nodes |
| 565 | @cindex retrieve node, tree-sitter | 545 | @cindex retrieve node, tree-sitter |