summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuan Fu <yuan@debian-BULLSEYE-live-builder-AMD64>2022-08-19 00:33:27 -0700
committerYuan Fu <yuan@debian-BULLSEYE-live-builder-AMD64>2022-08-19 00:33:27 -0700
commite98b4715bb986524bde9356b62429af9786ae716 (patch)
treeb1b7a4efa2de909c5874e884935dedc1ba27bce5
parent11379ef2369c09c719fecc66cf3b1287d9ad1f3a (diff)
downloademacs-e98b4715bb986524bde9356b62429af9786ae716.tar.gz
; * doc/lispref/parsing.texi: Minor touch-up.
-rw-r--r--doc/lispref/parsing.texi7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/lispref/parsing.texi b/doc/lispref/parsing.texi
index 8df14b12b73..917779f78a3 100644
--- a/doc/lispref/parsing.texi
+++ b/doc/lispref/parsing.texi
@@ -388,7 +388,7 @@ size exceeds that, Emacs signals @var{treesit-buffer-too-large}
with signal data being the buffer size.
Once a parser is created, Emacs automatically adds it to the
-buffer-local parser list. Every time a change is made to the buffer,
+internal parser list. Every time a change is made to the buffer,
Emacs updates parsers in this list so they can update their syntax
tree incrementally.
@@ -412,8 +412,9 @@ the mean to handle a multi-language buffer; instead, set the ranges in
which a parser should operate in. @xref{Multiple Languages}.
Because a parser parses lazily, when we narrow the buffer, the parser
-doesn't act immediately; as long as we don't query for a node while
-the buffer is narrowed, narrowing does not affect the parser.
+is not affected immediately; as long as we don't query for a node
+while the buffer is narrowed, the parser is oblivious of the
+narrowing.
@cindex tree-sitter parse string
@defun treesit-parse-string string language