]> git.eshelyaron.com Git - emacs.git/commitdiff
; Update Ftreesit_parser_list docstring.
authorYuan Fu <casouri@gmail.com>
Wed, 6 Sep 2023 03:15:11 +0000 (20:15 -0700)
committerYuan Fu <casouri@gmail.com>
Wed, 6 Sep 2023 04:03:38 +0000 (21:03 -0700)
* doc/lispref/parsing.texi (Using Parser): Update manual.
* src/treesit.c (Ftreesit_parser_list): Update docstring.

doc/lispref/parsing.texi
src/treesit.c

index 20d4b09ed4c8c0608c138cb5920d71d6e3405fa4..a0479050f2709db07508162b02c6f8924083c21a 100644 (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
index dfd098e3c856237869f470865bda0b4b3ae63aef..f40bd32f1568ddd5c91df079540046fe64046cd6 100644 (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;