From: Yuan Fu Date: Mon, 7 Nov 2022 09:27:49 +0000 (-0800) Subject: ; Documentation fixes for tree-sitter X-Git-Tag: emacs-29.0.90~1703 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1ae314dfda1a7746fb31957ac3eedefd70b3c1fe;p=emacs.git ; Documentation fixes for tree-sitter * doc/lispref/parsing.texi (Multiple Languages): Resolve the FIXME. --- diff --git a/doc/lispref/parsing.texi b/doc/lispref/parsing.texi index a7a8f8400b3..a22b088111d 100644 --- a/doc/lispref/parsing.texi +++ b/doc/lispref/parsing.texi @@ -1335,12 +1335,12 @@ getting ranges for a parser. Lisp programs should call @code{treesit-update-ranges} to make sure the ranges for each parser are correct before using parsers in a buffer, and call @code{treesit-language-at} to figure out the language -responsible for the text at some position. Multi-language major modes -set @code{treesit-range-settings} and -@c FIXME: ``power''? -@code{treesit-language-at-point-function} respectively to power these -two functions. These functions and variables are explained in more -detail towards the end of the section. +responsible for the text at some position. These two functions don't +work by themselves, they need major modes to set +@code{treesit-range-settings} and +@code{treesit-language-at-point-function}, which do the actual work. +These functions and variables are explained in more detail towards the +end of the section. @heading Getting and setting ranges