; Fix documentation of recent treesit changes

* etc/NEWS:
* src/treesit.c (Ftreesit_query_eagerly_compiled_p):
* doc/lispref/parsing.texi (Pattern Matching): Fix documentation
of the recent treesit-related changes.  (Bug#80108)
This commit is contained in:
Eli Zaretskii 2026-01-02 14:48:58 +02:00
parent 1e777f71f2
commit b51c95c1c7
3 changed files with 5 additions and 5 deletions

View file

@ -1618,8 +1618,8 @@ compiled, use @code{treesit-query-eagerly-compiled-p}.
If @var{query} is malformed or language can't be loaded, this function
signals @code{treesit-query-error}. Obviously this will only happen
when @var{eager} is non-@code{nil}, lest Emacs doesn't actually compile
@var{query}.
when @var{eager} is non-@code{nil}, since otherwise Emacs doesn't
actually compile @var{query}.
@end defun
@findex treesit-query-language

View file

@ -1040,7 +1040,7 @@ The new variable 'forward-comment-function' is set to the new function
+++
*** New function 'treesit-query-eagerly-compiled-p'
This function lets user determine if a compiled query is eagerly compiled.
This function returns non-nil if a query was eagerly compiled.
+++
*** New function 'treesit-query-source'

View file

@ -2266,8 +2266,8 @@ DEFUN ("treesit-query-eagerly-compiled-p",
QUERY has to be a compiled query. Compiled queries are lazily compiled
by default, meaning they are not actually compiled until first used.
Return non-nil if QUERY is actually compiled (either by passing the
EAGER flag to `treesit-query-compile` or by using the compiled query
once). */)
EAGER flag to `treesit-query-compile' or due to the fact that it was
already used). */)
(Lisp_Object query)
{
CHECK_TS_COMPILED_QUERY (query);