summaryrefslogtreecommitdiff
path: root/lisp/indent.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2010-03-22 13:28:27 -0400
committerChong Yidong <cyd@stupidchicken.com>2010-03-22 13:28:27 -0400
commite9ba3e26e5f2cf6a528f42f85c48cfbed5ad7ad9 (patch)
treeb8b1e903310ffbe242e70056efc73c5cb56a1a60 /lisp/indent.el
parent657071fc073b054db83168daffbbc1ce8ff89527 (diff)
downloademacs-e9ba3e26e5f2cf6a528f42f85c48cfbed5ad7ad9.tar.gz
* indent.el (indent-for-tab-command): Doc fix.
Diffstat (limited to 'lisp/indent.el')
-rw-r--r--lisp/indent.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/indent.el b/lisp/indent.el
index 3f8353bd90c..adecbfaeb12 100644
--- a/lisp/indent.el
+++ b/lisp/indent.el
@@ -85,8 +85,10 @@ special; we don't actually use them here."
(defun indent-for-tab-command (&optional arg)
"Indent line or region in proper way for current major mode or insert a tab.
Depending on `tab-always-indent', either insert a tab or indent.
-If initial point was within line's indentation, position after
-the indentation. Else stay at same point in text.
+
+In most major modes, if point was in the current line's indentation,
+it is moved to the first non-whitespace character after indenting;
+otherwise it stays at the same position in the text.
If a prefix argument is given, also rigidly indent the entire
balanced expression which starts at the beginning of the current