diff options
| author | Eli Zaretskii | 2023-01-15 11:19:20 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2023-01-15 11:19:20 +0200 |
| commit | 72d2604d1fd66d08f6edc3842b585e0aafaf5cc2 (patch) | |
| tree | 632d5c542bde73b8c9517d18f0db1d92a0a95d2a /doc | |
| parent | cf311826841748c6865c713a4b010105e199efa7 (diff) | |
| parent | 3fa10f6e54d0ba3b08c18d99b0c857f08986e37a (diff) | |
| download | emacs-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.texi | 14 |
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 | |||
| 4926 | rule is applicable. Then Emacs passes the node to @var{anchor}, which | 4926 | rule is applicable. Then Emacs passes the node to @var{anchor}, which |
| 4927 | returns a buffer position. Emacs takes the column number of that | 4927 | returns a buffer position. Emacs takes the column number of that |
| 4928 | position, adds @var{offset} to it, and the result is the indentation | 4928 | position, adds @var{offset} to it, and the result is the indentation |
| 4929 | column for the current line. @var{offset} can be an integer or a | 4929 | column for the current line. |
| 4930 | variable whose value is an integer. | ||
| 4931 | 4930 | ||
| 4932 | The @var{matcher} and @var{anchor} are functions, and Emacs provides | 4931 | The @var{matcher} and @var{anchor} are functions, and Emacs provides |
| 4933 | convenient defaults for them. | 4932 | convenient 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 |
| 4944 | smallest node that spans that position. | 4943 | smallest node that spans that position. |
| 4945 | 4944 | ||
| 4946 | Emacs finds @var{bol}, @var{node} and @var{parent} and | 4945 | @var{matcher} should return non-@code{nil} if the rule is applicable, |
| 4947 | passes them to each @var{matcher} and @var{anchor}. @var{matcher} | 4946 | and @var{anchor} should return a buffer position. |
| 4948 | should 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, |
| 4949 | or a function that returns an integer. If it is a function, it is | ||
| 4950 | passed @var{node}, @var{parent}, and @var{bol}, like matchers and | ||
| 4951 | anchors. | ||
| 4950 | @end defvar | 4952 | @end defvar |
| 4951 | 4953 | ||
| 4952 | @defvar treesit-simple-indent-presets | 4954 | @defvar treesit-simple-indent-presets |