aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEli Zaretskii2023-01-15 11:19:20 +0200
committerEli Zaretskii2023-01-15 11:19:20 +0200
commit72d2604d1fd66d08f6edc3842b585e0aafaf5cc2 (patch)
tree632d5c542bde73b8c9517d18f0db1d92a0a95d2a /doc
parentcf311826841748c6865c713a4b010105e199efa7 (diff)
parent3fa10f6e54d0ba3b08c18d99b0c857f08986e37a (diff)
downloademacs-72d2604d1fd66d08f6edc3842b585e0aafaf5cc2.tar.gz
emacs-72d2604d1fd66d08f6edc3842b585e0aafaf5cc2.zip
Merge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/emacs into emacs-29
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/modes.texi14
1 files changed, 8 insertions, 6 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index ff372edb3ff..fe5eb8a1b8d 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -4926,8 +4926,7 @@ the current line to @var{matcher}; if it returns non-@code{nil}, this
4926rule is applicable. Then Emacs passes the node to @var{anchor}, which 4926rule is applicable. Then Emacs passes the node to @var{anchor}, which
4927returns a buffer position. Emacs takes the column number of that 4927returns a buffer position. Emacs takes the column number of that
4928position, adds @var{offset} to it, and the result is the indentation 4928position, adds @var{offset} to it, and the result is the indentation
4929column for the current line. @var{offset} can be an integer or a 4929column for the current line.
4930variable whose value is an integer.
4931 4930
4932The @var{matcher} and @var{anchor} are functions, and Emacs provides 4931The @var{matcher} and @var{anchor} are functions, and Emacs provides
4933convenient defaults for them. 4932convenient defaults for them.
@@ -4943,10 +4942,13 @@ inside a multi-line string, no node can start at that position, so
4943@var{node} is @code{nil}. In that case, @var{parent} would be the 4942@var{node} is @code{nil}. In that case, @var{parent} would be the
4944smallest node that spans that position. 4943smallest node that spans that position.
4945 4944
4946Emacs finds @var{bol}, @var{node} and @var{parent} and 4945@var{matcher} should return non-@code{nil} if the rule is applicable,
4947passes them to each @var{matcher} and @var{anchor}. @var{matcher} 4946and @var{anchor} should return a buffer position.
4948should return non-@code{nil} if the rule is applicable, and 4947
4949@var{anchor} should return a buffer position. 4948@var{offset} can be an integer, a variable whose value is an integer,
4949or a function that returns an integer. If it is a function, it is
4950passed @var{node}, @var{parent}, and @var{bol}, like matchers and
4951anchors.
4950@end defvar 4952@end defvar
4951 4953
4952@defvar treesit-simple-indent-presets 4954@defvar treesit-simple-indent-presets