# HG changeset patch # User Chong Yidong # Date 1269278907 14400 # Node ID d0d82a838677685626c0974c9fe7cf2744d4de0a # Parent 8fdf7263b3a2b123a4483a04b75df63fb1c89c80 * indent.el (indent-for-tab-command): Doc fix. diff -r 8fdf7263b3a2 -r d0d82a838677 lisp/ChangeLog --- a/lisp/ChangeLog Mon Mar 22 17:21:22 2010 +0000 +++ b/lisp/ChangeLog Mon Mar 22 13:28:27 2010 -0400 @@ -1,3 +1,7 @@ +2010-03-21 Chong Yidong + + * indent.el (indent-for-tab-command): Doc fix. + 2010-03-22 Alan Mackenzie * progmodes/cc-engine.el (c-remove-stale-state-cache): Fix diff -r 8fdf7263b3a2 -r d0d82a838677 lisp/indent.el --- a/lisp/indent.el Mon Mar 22 17:21:22 2010 +0000 +++ b/lisp/indent.el Mon Mar 22 13:28:27 2010 -0400 @@ -85,8 +85,10 @@ (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