aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2024-04-20 09:53:35 +0300
committerEli Zaretskii2024-04-20 09:53:35 +0300
commit42776dc5b7702cec2feb787fbf770d91623b9818 (patch)
tree9a98d2703640fa51192c70e5e99c3562ee125fa9 /src
parent71d2ec7aba3d6ef9386e807970b0bfaa2043d128 (diff)
downloademacs-42776dc5b7702cec2feb787fbf770d91623b9818.tar.gz
emacs-42776dc5b7702cec2feb787fbf770d91623b9818.zip
; Fix documentation of recent commits related to treesit
* src/treesit.c (Ftreesit_parser_changed_ranges): * doc/lispref/parsing.texi (Using Parser): Fix wording.
Diffstat (limited to 'src')
-rw-r--r--src/treesit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/treesit.c b/src/treesit.c
index 76354361284..52d158b1bf8 100644
--- a/src/treesit.c
+++ b/src/treesit.c
@@ -1833,13 +1833,13 @@ DEFUN ("treesit-parser-changed-ranges", Ftreesit_parser_changed_ranges,
1833 1, 2, 0, 1833 1, 2, 0,
1834 doc: /* Return the buffer regions affected by the last reparse of PARSER. 1834 doc: /* Return the buffer regions affected by the last reparse of PARSER.
1835 1835
1836Returns a list of cons (BEG . END), where each cons represents a region 1836Returns a list of cons cells (BEG . END), where each cons cell represents
1837in which the buffer content was affected by the last reparse. 1837a region in which changes in buffer contents affected the last reparse.
1838 1838
1839This function should almost always be called immediately after 1839This function should almost always be called immediately after
1840reparsing. If it's called when there are new buffer edits that hasn't 1840reparsing. If it's called when there are new buffer edits that hasn't
1841been reparsed, Emacs signals `treesit-unparsed-edits', unless QUIET is 1841been reparsed, Emacs signals the `treesit-unparsed-edits' error, unless
1842non-nil. 1842optional argument QUIET is non-nil.
1843 1843
1844Calling this function multiple times consecutively doesn't change its 1844Calling this function multiple times consecutively doesn't change its
1845return value; it always returns the ranges affected by the last 1845return value; it always returns the ranges affected by the last