diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index 361a5e37d02..cf67b319924 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi @@ -5185,12 +5185,11 @@ It is more convenient to use the simple indentation engine described below: then the major mode needs only write some indentation rules, and the engine takes care of the rest. -To enable the parser-based indentation engine, either set -@code{treesit-simple-indent-rules} or set -@code{treesit-indent-function}, then call -@code{treesit-major-mode-setup}. (All that -@code{treesit-major-mode-setup} does is setting the value of -@code{indent-line-function} to @code{treesit-indent} and +To enable the parser-based indentation engine, set either +@code{treesit-simple-indent-rules} or @code{treesit-indent-function}, +then call @code{treesit-major-mode-setup}. (All that +@code{treesit-major-mode-setup} does is set the value of +@code{indent-line-function} to @code{treesit-indent}, and @code{indent-region-function} to @code{treesit-indent-region}.) @defvar treesit-indent-function diff --git a/doc/lispref/parsing.texi b/doc/lispref/parsing.texi index 6afdce37728..63551442b03 100644 --- a/doc/lispref/parsing.texi +++ b/doc/lispref/parsing.texi @@ -1899,9 +1899,10 @@ directly translate into operations shown above. :host 'html '((style_element (raw_text) @@capture)))) @end group + @group ;; Major modes with multiple languages should always set -`treesit-language-at-point-function' (which see). +;; `treesit-language-at-point-function' (which see). (setq treesit-language-at-point-function (lambda (pos) (let* ((node (treesit-node-at pos 'html))