Commit 559f64a0 authored by Alex Branham's avatar Alex Branham Committed by Basil L. Contovounesios

Backport: Update documentation for indent-relative functions

* lisp/indent.el (indent-relative): Document what happens when there
  is no previous nonblank line.
* doc/lispref/text.texi (Relative Indent): Document
  indent-relative-first-indent-point instead of obsolete
  indent-relative-maybe. Fix documentation of which argument from
  'indent-relative' is used.

Bug#34858

(cherry picked from commit 10cd6587)
parent cb5a3408
...@@ -2570,11 +2570,11 @@ The quick brown fox jum @point{}ped. ...@@ -2570,11 +2570,11 @@ The quick brown fox jum @point{}ped.
@end example @end example
@end deffn @end deffn
@deffn Command indent-relative-maybe @deffn Command indent-relative-first-indent-point
@comment !!SourceFile indent.el @comment !!SourceFile indent.el
This command indents the current line like the previous nonblank line, This command indents the current line like the previous nonblank line,
by calling @code{indent-relative} with @code{t} as the by calling @code{indent-relative} with @code{t} as the
@var{unindented-ok} argument. The return value is unpredictable. @var{first-only} argument. The return value is unpredictable.
If the previous nonblank line has no indent points beyond the current If the previous nonblank line has no indent points beyond the current
column, this command does nothing. column, this command does nothing.
......
...@@ -592,8 +592,9 @@ considered. ...@@ -592,8 +592,9 @@ considered.
If the previous nonblank line has no indent points beyond the If the previous nonblank line has no indent points beyond the
column point starts at, then `tab-to-tab-stop' is done, if both column point starts at, then `tab-to-tab-stop' is done, if both
FIRST-ONLY and UNINDENTED-OK are nil, otherwise nothing is done FIRST-ONLY and UNINDENTED-OK are nil, otherwise nothing is done.
in this case. If there isn't a previous nonblank line and UNINDENTED-OK is nil,
call `tab-to-tab-stop'.
See also `indent-relative-first-indent-point'." See also `indent-relative-first-indent-point'."
(interactive "P") (interactive "P")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment