From 5de5b63e57d45330221c7f3c160b75fd7d02ef9e Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Wed, 28 Oct 2020 12:47:00 +0100 Subject: [PATCH] Document all parameters on `indent-relative' * doc/lispref/text.texi (Relative Indent): Mention the FIRST-ONLY parameter (bug#39330). --- doc/lispref/text.texi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 559b2b1c973..550e7feee2e 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi @@ -2566,7 +2566,7 @@ the beginning of the line (if @var{nochange-regexp} is non-@code{nil}). This section describes two commands that indent the current line based on the contents of previous lines. -@deffn Command indent-relative &optional unindented-ok +@deffn Command indent-relative &optional first-only unindented-ok This command inserts whitespace at point, extending to the same column as the next @dfn{indent point} of the previous nonblank line. An indent point is a non-whitespace character following whitespace. The @@ -2582,6 +2582,9 @@ nothing (if @var{unindented-ok} is non-@code{nil}) or calls of the last column of a short line of text, this command ordinarily moves point to the next tab stop by inserting whitespace. +If @var{first-only} is non-@code{nil}, only the first indent point is +considered. + The return value of @code{indent-relative} is unpredictable. In the following example, point is at the beginning of the second -- 2.39.2