comparison lisp/indent.el @ 108439:c3622fa53abe

Merge from mainline.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Fri, 26 Mar 2010 15:03:20 +0000
parents d0d82a838677
children 144e6ea330f0 376148b31b5e
comparison
equal deleted inserted replaced
108438:2485b1fb98d3 108439:c3622fa53abe
83 (funcall indent-line-function))) 83 (funcall indent-line-function)))
84 84
85 (defun indent-for-tab-command (&optional arg) 85 (defun indent-for-tab-command (&optional arg)
86 "Indent line or region in proper way for current major mode or insert a tab. 86 "Indent line or region in proper way for current major mode or insert a tab.
87 Depending on `tab-always-indent', either insert a tab or indent. 87 Depending on `tab-always-indent', either insert a tab or indent.
88 If initial point was within line's indentation, position after 88
89 the indentation. Else stay at same point in text. 89 In most major modes, if point was in the current line's indentation,
90 it is moved to the first non-whitespace character after indenting;
91 otherwise it stays at the same position in the text.
90 92
91 If a prefix argument is given, also rigidly indent the entire 93 If a prefix argument is given, also rigidly indent the entire
92 balanced expression which starts at the beginning of the current 94 balanced expression which starts at the beginning of the current
93 line to reflect the current line's change in indentation. 95 line to reflect the current line's change in indentation.
94 96