[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 10cd658: Update documentation for indent-relative f
From: |
Alex Branham |
Subject: |
[Emacs-diffs] master 10cd658: Update documentation for indent-relative functions |
Date: |
Fri, 5 Apr 2019 20:51:13 -0400 (EDT) |
branch: master
commit 10cd65878c741d2a22a1f2c36c54fcad4e516f72
Author: Alex Branham <address@hidden>
Commit: Alex Branham <address@hidden>
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
---
doc/lispref/text.texi | 4 ++--
lisp/indent.el | 5 +++--
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi
index 86f9fa0..1ef836b 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -2577,11 +2577,11 @@ The quick brown fox jum @point{}ped.
@end example
@end deffn
address@hidden Command indent-relative-maybe
address@hidden Command indent-relative-first-indent-point
@comment !!SourceFile indent.el
This command indents the current line like the previous nonblank line,
by calling @code{indent-relative} with @code{t} as the
address@hidden argument. The return value is unpredictable.
address@hidden argument. The return value is unpredictable.
If the previous nonblank line has no indent points beyond the current
column, this command does nothing.
diff --git a/lisp/indent.el b/lisp/indent.el
index f3d3158..bf87d6a 100644
--- a/lisp/indent.el
+++ b/lisp/indent.el
@@ -600,8 +600,9 @@ considered.
If the previous nonblank line has no indent points beyond the
column point starts at, then `tab-to-tab-stop' is done, if both
-FIRST-ONLY and UNINDENTED-OK are nil, otherwise nothing is done
-in this case.
+FIRST-ONLY and UNINDENTED-OK are nil, otherwise nothing is done.
+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'."
(interactive "P")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 10cd658: Update documentation for indent-relative functions,
Alex Branham <=