; Update Ftreesit_parser_list docstring.

* doc/lispref/parsing.texi (Using Parser): Update manual.
* src/treesit.c (Ftreesit_parser_list): Update docstring.
This commit is contained in:
Yuan Fu 2023-09-05 20:15:11 -07:00
parent d392a5d3c1
commit 6b387d2edd
No known key found for this signature in database
GPG key ID: 56E19BC57664A442
2 changed files with 5 additions and 5 deletions

View file

@ -462,7 +462,8 @@ buffers use their base buffer's parsers.
If @var{language} is non-@var{nil}, only include parsers for that
language. And only include parsers with @var{tag}. @var{tag} defaults
to @code{nil}.
to @code{nil}. If @var{tag} is @code{t}, include parsers in the
returned list regardless of their tag.
@end defun
@defun treesit-parser-delete parser

View file

@ -1475,8 +1475,6 @@ See `treesit-parser-list' for the buffer's parser list. */)
return Qnil;
}
/* If TAG is t, include all parsers regardless of their tag. But
don't document this until there's some actual need for it. */
DEFUN ("treesit-parser-list",
Ftreesit_parser_list, Streesit_parser_list,
0, 3, 0,
@ -1488,8 +1486,9 @@ use their base buffer's parsers.
If LANGUAGE is non-nil, only return parsers for that language.
The returned list only contain parsers with TAG. TAG defaults to
nil. */)
The returned list only contain parsers with TAG. TAG defaults to nil.
If TAG is t, include parsers in the returned list regardless of their
tag. */)
(Lisp_Object buffer, Lisp_Object language, Lisp_Object tag)
{
struct buffer *buf;