]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove treesit manual entries for deleted functions
authorYuan Fu <yuan@debian-BULLSEYE-live-builder-AMD64>
Fri, 19 Aug 2022 07:25:10 +0000 (00:25 -0700)
committerYuan Fu <yuan@debian-BULLSEYE-live-builder-AMD64>
Fri, 19 Aug 2022 07:26:08 +0000 (00:26 -0700)
* doc/lispref/parsing.texi: Remove documentation for
treesit-get-parser-create and treesit-get-parser.

doc/lispref/parsing.texi

index 27755e0caa5144fea44ef5cf60a026aa463de2a7..8df14b12b735936584249f4ebeb2aedb12c7aea6 100644 (file)
@@ -348,34 +348,14 @@ this function and determine whether to activate tree-sitter features.
 
 
 @cindex Creating tree-sitter parsers
-To create a parser, we provide a buffer to parse and the language to
-use (@pxref{Language Definitions}).  Emacs provides several creation
-functions for different use cases.
-
-@defun treesit-get-parser-create language
-This function is the most convenient one.  It gives you a parser that
-recognizes @var{language} for the current buffer.  The function
-checks if there already exists a parser suiting the need, and only
-creates a new one when it can't find one.
-
-@example
-@group
-;; Create a parser for C programming language.
-(treesit-get-parser-create 'c)
-    @c @result{} #<treesit-parser for c in *scratch*>
-@end group
-@end example
-@end defun
-
-@defun treesit-get-parser language
-This function is like @code{treesit-get-parser-create}, but it
-always creates a new parser.
-@end defun
-
-@defun treesit-parser-create buffer language
-This function is the most primitive, requiring both the buffer to
-associate to, and the language to use.  If @var{buffer} is nil, the
-current buffer is used.
+@defun treesit-parser-create language &optional buffer no-reuse
+To create a parser, we provide a @var{buffer} to keep track of and the
+@var{language} to use (@pxref{Language Definitions}).  If @var{buffer}
+is nil, the current buffer is used.
+
+By default, this function reuses a parser if one already exists for
+@var{language} in @var{buffer}, if @var{no-reuse} is non-nil, this
+function always creates a new parser.
 @end defun
 
 Given a parser, we can query information about it: