/[emacs]/emacs/man/indent.texi
ViewVC logotype

Diff of /emacs/man/indent.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by teirllm, Mon Aug 30 22:02:36 2004 UTC revision 1.16 by rms, Wed Feb 16 10:05:39 2005 UTC
# Line 16  Indent the current line ``appropriately' Line 16  Indent the current line ``appropriately'
16  Perform @key{RET} followed by @key{TAB} (@code{newline-and-indent}).  Perform @key{RET} followed by @key{TAB} (@code{newline-and-indent}).
17  @item M-^  @item M-^
18  Merge the previous and the current line (@code{delete-indentation}).  Merge the previous and the current line (@code{delete-indentation}).
19  This would cancel out the effect of @kbd{C-j}.  This would cancel the effect of a preceding @kbd{C-j}.
20  @item C-M-o  @item C-M-o
21  Split the current line at point; text on the line after point becomes a  Split the current line at point; text on the line after point becomes a
22  new line indented to the same column where point is located  new line indented to the same column where point is located
# Line 25  new line indented to the same column whe Line 25  new line indented to the same column whe
25  Move (forward or back) to the first nonblank character on the current  Move (forward or back) to the first nonblank character on the current
26  line (@code{back-to-indentation}).  line (@code{back-to-indentation}).
27  @item C-M-\  @item C-M-\
28  Indent several lines to the same column (@code{indent-region}).  Indent lines in the region to the same column (@code{indent-region}).
29  @item C-x @key{TAB}  @item C-x @key{TAB}
30  Shift a block of lines rigidly right or left (@code{indent-rigidly}).  Shift lines in the region rigidly right or left (@code{indent-rigidly}).
31  @item M-i  @item M-i
32  Indent from point to the next prespecified tab stop column  Indent from point to the next prespecified tab stop column
33  (@code{tab-to-tab-stop}).  (@code{tab-to-tab-stop}).
# Line 47  to the next display tab stop position, a Line 47  to the next display tab stop position, a
47  stop is eight.  @xref{Display Custom}, for more details.  stop is eight.  @xref{Display Custom}, for more details.
48    
49  @item  @item
50  Advance to the next tab stop.  You can set tab stops at your choice of  Insert whitespace up to the next tab stop.  You can set tab stops at
51  column positions, then type @kbd{M-i} to advance to the next tab stop.  your choice of column positions, then type @kbd{M-i} to advance to the
52  The default is to have tab stops every eight columns, which means by  next tab stop.  The default tab stop settings have a tab stop every
53  default @kbd{M-i} inserts a tab character.  To set the tab stops, use  eight columns, which means by default @kbd{M-i} inserts a tab
54  @kbd{M-x edit-tab-stops}.  character.  To set the tab stops, use @kbd{M-x edit-tab-stops}.
55    
56  @item  @item
57  Align a line with the previous line.  More precisely, the command  Align a line with the previous line.  More precisely, the command
# Line 72  of the preceding lines.  No matter where Line 72  of the preceding lines.  No matter where
72  type @key{TAB}, it aligns the line as a whole.  type @key{TAB}, it aligns the line as a whole.
73  @end enumerate  @end enumerate
74    
75    Normally, all of the above methods insert an optimal mix of tabs and    Normally, most of the above methods insert an optimal mix of tabs and
76  spaces to align to the desired column.  @xref{Just Spaces}, for how to  spaces to align to the desired column.  @xref{Just Spaces}, for how to
77  disable use of tabs.  However, @kbd{C-q @key{TAB}} always inserts a  disable use of tabs.  However, @kbd{C-q @key{TAB}} always inserts a
78  tab, even when tabs are disabled for the indentation commands.  tab, even when tabs are disabled for the indentation commands.
79    
 @c   In Text mode, @key{TAB} runs the command @code{tab-to-tab-stop}, which  
 @c indents to the next tab stop column.  You can set the tab stops with  
 @c @kbd{M-x edit-tab-stops}.  
   
80  @menu  @menu
81  * Indentation Commands::  Various commands and techniques for indentation.  * Indentation Commands::  Various commands and techniques for indentation.
82  * Tab Stops::             You can set arbitrary "tab stops" and then  * Tab Stops::             You can set arbitrary "tab stops" and then

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26