From bdf8b38dc4d6a8aa93226316438530d5f8ae8807 Mon Sep 17 00:00:00 2001 From: "Basil L. Contovounesios" Date: Wed, 22 May 2024 12:02:35 +0200 Subject: [PATCH] ; Fix last tree-sitter changes in Elisp manual. (cherry picked from commit 394aac7b187628303aa2b772b29ffb5718910f94) --- doc/lispref/modes.texi | 11 +++++------ doc/lispref/parsing.texi | 3 ++- 2 files changed, 7 insertions(+), 7 deletions(-) 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)) -- 2.39.5