1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348
|
@c =============================================================
@c = $B85(B $BK](B $BLu(B: $B@VCS1QIW!wEE5$DL?.Bg3X(B
@c = $B2CI.=$@5(B: $BBgLZFXM:!wBgDM(B.$BC^GHBg3X(B = 1998/11/25
@c =============================================================
@c This is part of the Emacs manual.
@c Copyright (C) 1985, 86, 87, 93, 94, 95, 1997 Free Software Foundation, Inc.
@c See file emacs.texi for copying conditions.
@node Indentation, Text, Major Modes, Top
@c @chapter Indentation
@chapter $B;z2<$2(B
@c @cindex indentation
@cindex $B;z2<$2(B
@c @cindex columns (indentation)
@cindex $B7e!J;z2<$2!K(B
@cindex $B%3%i%`!J;z2<$2!K(B
@c This chapter describes the Emacs commands that add, remove, or
@c adjust indentation.
$BK\>O$G$O!";z2<$2!J(Bindentation$B!K$r(B
$BIU2C!?:o=|!?D4@0$9$k(BEmacs$B%3%^%s%I$K$D$$$F@bL@$7$^$9!#(B
@c WideCommands
@table @kbd
@item @key{TAB}
@c Indent current line ``appropriately'' in a mode-dependent fashion.
$B%b!<%I$K8GM-$NJ}K!$G!"8=:_9T$r!XE,@Z$K!Y;z2<$2$9$k!#(B
@item @kbd{C-j}
@c Perform @key{RET} followed by @key{TAB} (@code{newline-and-indent}).
@key{RET}$B$KB3$1$F(B@key{TAB}$B$r<B9T$9$k!J(B@code{newline-and-indent}$B!K!#(B
@item M-^
@c Merge two lines (@code{delete-indentation}). This would cancel out
@c the effect of @kbd{C-j}.
2$B$D$N9T$rO"7k$7$F(B1$B$D$K$9$k!J(B@code{delete-indentation}$B!K!#(B
@kbd{C-j}$B$N8z2L$r<h$j>C$9!#(B
@item C-M-o
@c Split line at point; text on the line after point becomes a new line
@c indented to the same column that it now starts in (@code{split-line}).
$B%]%$%s%H0LCV$G9T$rJ,3d$9$k!#(B
$B$D$^$j!"9TFb$N%]%$%s%H0J9_$N%F%-%9%H$O?7$?$J9T$K$J$j!"$+$D!"(B
$B%]%$%s%H0LCV$^$G;z2<$2$9$k!J(B@code{split-line}$B!K!#(B
@item M-m
@c Move (forward or back) to the first nonblank character on the current
@c line (@code{back-to-indentation}).
$B8=:_9T$N6uGr$G$J$$:G=i$NJ8;z$^$G%]%$%s%H$r(B
$B!J9TKv$+9TF,$X8~$+$C$F!K0\F0$9$k!J(B@code{back-to-indentation}$B!K!#(B
@item C-M-\
@c Indent several lines to same column (@code{indent-region}).
$BJ#?t$N9T$rF1$87e$K;z2<$2$9$k!J(B@code{indent-region}$B!K!#(B
@item C-x @key{TAB}
@c Shift block of lines rigidly right or left (@code{indent-rigidly}).
$BJ#?t$N9T$N2t$r!J1&$+:8$K!KF1$8NL$@$1$-$C$A$j0\F0$9$k(B
$B!J(B@code{indent-rigidly}$B!K!#(B
@item M-i
@c Indent from point to the next prespecified tab stop column
@c (@code{tab-to-tab-stop}).
$B%]%$%s%H0LCV$+$i$"$i$+$8$a@_Dj$7$?$D$.$N%?%V%9%H%C%W0LCV$^$G;z2<$2$9$k(B
$B!J(B@code{tab-to-tab-stop}$B!K!#(B
@item M-x indent-relative
@c Indent from point to under an indentation point in the previous line.
$B%]%$%s%H0LCV$+$i$^$($N9T$N;z2<$20LCV$^$G;z2<$2$9$k!#(B
@end table
@c Most programming languages have some indentation convention. For Lisp
@c code, lines are indented according to their nesting in parentheses. The
@c same general idea is used for C code, though many details are different.
$B$[$H$s$I$N%W%m%0%i%`8@8l$K$O!";z2<$2$N47=,$,$"$j$^$9!#(B
Lisp$B%3!<%I$G$O!"3g8L$NF~$l;R$N?<$5$K=>$C$F9T$r;z2<$2$7$^$9!#(B
$B:YIt$O$+$J$j0[$J$j$^$9$,!"35G0E*$K$O(BC$B%3!<%I$G$bF1MM$N9M$(J}$G;z2<$2$7$^$9!#(B
@kindex TAB
@c Whatever the language, to indent a line, use the @key{TAB} command. Each
@c major mode defines this command to perform the sort of indentation
@c appropriate for the particular language. In Lisp mode, @key{TAB} aligns
@c the line according to its depth in parentheses. No matter where in the
@c line you are when you type @key{TAB}, it aligns the line as a whole. In C
@c mode, @key{TAB} implements a subtle and sophisticated indentation style that
@c knows about many aspects of C syntax.
$B$I$s$J8@8l$G$"$C$F$b!"9T$r;z2<$2$9$k$K$O(B@key{TAB}$B%3%^%s%I$r;H$$$^$9!#(B
$B3F%a%8%c!<%b!<%I$G$O!"FCDj$N8@8l$KE,$7$?;z2<$2$r9T$&$h$&$K!"(B
$B$3$N%3%^%s%I$rDj5A$7$^$9!#(B
Lisp$B%b!<%I$G$O!"(B@key{TAB}$B$O3g8L$N?<$5$K1~$8$F9T$r@0Ns$7$^$9!#(B
$B9T$N$I$3$G(B@key{TAB}$B$rBG80$7$F$b!"$=$N9TA4BN$r@0Ns$7$^$9!#(B
C$B%b!<%I$G$O!"(B@key{TAB}$B$O!"(B
C$B$N9=J8>e$N$5$^$6$^$JB&LL$r9MN8$7$?9*$_$G@vN}$5$l$?(B
$B;z2<$2%9%?%$%k$r<B8=$7$F$$$^$9!#(B
@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}.
$B%F%-%9%H!J(Btext$B!K%b!<%I$G$O!"(B
@key{TAB}$B$O(B@code{tab-to-tab-stop}$B%3%^%s%I$r<B9T$7$^$9!#(B
$B$3$l$O!"$D$.$N%?%V%9%H%C%W0LCV$^$G;z2<$2$r9T$$$^$9!#(B
$B%?%V%9%H%C%W0LCV$O(B@kbd{M-x edit-tab-stops}$B$G@_Dj$G$-$^$9!#(B
@menu
* Indentation Commands:: Various commands and techniques for indentation.
* Tab Stops:: You can set arbitrary "tab stops" and then
indent to the next tab stop when you want to.
* Just Spaces:: You can request indentation using just spaces.
@end menu
@node Indentation Commands, Tab Stops, Indentation, Indentation
@c @section Indentation Commands and Techniques
@section $B;z2<$2%3%^%s%I$H$=$N5;9*(B
@kindex M-m
@findex back-to-indentation
@c To move over the indentation on a line, do @kbd{M-m}
@c (@code{back-to-indentation}). This command, given anywhere on a line,
@c positions point at the first nonblank character on the line.
$B9T$N;z2<$2$rHt$S1[$($k$K$O!"(B@kbd{M-m}$B!J(B@code{back-to-indentation}$B!K$r;H$$$^$9!#(B
$B9T$N$I$3$G<B9T$7$F$b!"$=$N9T$N6uGr$G$J$$:G=i$NJ8;z0LCV$K%]%$%s%H$r0\F0$7$^$9!#(B
@c To insert an indented line before the current line, do @kbd{C-a C-o
@c @key{TAB}}. To make an indented line after the current line, use
@c @kbd{C-e C-j}.
$B8=:_9T$N$^$($K;z2<$2$7$?9T$rA^F~$9$k$K$O!"(B
@kbd{C-a C-o @key{TAB}}$B$r;H$$$^$9!#(B
$B8=:_9T$N$"$H$K;z2<$2$7$?9T$rA^F~$9$k$K$O!"(B@kbd{C-e C-j}$B$r;H$$$^$9!#(B
@c If you just want to insert a tab character in the buffer, you can type
@c @kbd{C-q @key{TAB}}.
$BC1$K%?%VJ8;z$rA^F~$9$k$K$O!"(B@kbd{C-q @key{TAB}}$B$HBG$A$^$9!#(B
@kindex C-M-o
@findex split-line
@c @kbd{C-M-o} (@code{split-line}) moves the text from point to the end of
@c the line vertically down, so that the current line becomes two lines.
@c @kbd{C-M-o} first moves point forward over any spaces and tabs. Then it
@c inserts after point a newline and enough indentation to reach the same
@c column point is on. Point remains before the inserted newline; in this
@c regard, @kbd{C-M-o} resembles @kbd{C-o}.
@kbd{C-M-o}$B!J(B@code{split-line}$B!K$O!"(B
$B%]%$%s%H$+$i9TKv$^$G$N%F%-%9%H$r?bD>$K2<$m$7$^$9!#(B
$B$=$N7k2L!"8=:_9T$O(B2$B$D$N9T$KJ,3d$5$l$^$9!#(B
@kbd{C-M-o}$B$O!"$^$:!"%]%$%s%H$ND>8e$K6uGr$d%?%V$,$"$k8B$j%]%$%s%H$r?J$a$^$9!#(B
$B$=$7$F!"%]%$%s%H$ND>8e$K!"(B
$B2~9T$H%]%$%s%H0LCV$N7e$^$G$KI,MW$J;z2<$2$rA^F~$7$^$9!#(B
$B%]%$%s%H<+?H$OA^F~$7$?2~9T$ND>A0$KN1$^$j$^$9!#(B
$B$3$NE@$G$O!"(B@kbd{C-M-o}$B$O(B@kbd{C-o}$B$K;w$F$$$^$9!#(B
@kindex M-^
@findex delete-indentation
@c To join two lines cleanly, use the @kbd{M-^}
@c (@code{delete-indentation}) command. It deletes the indentation at the
@c front of the current line, and the line boundary as well, replacing them
@c with a single space. As a special case (useful for Lisp code) the
@c single space is omitted if the characters to be joined are consecutive
@c open parentheses or closing parentheses, or if the junction follows
@c another newline. To delete just the indentation of a line, go to the
@c beginning of the line and use @kbd{M-\}
@c (@code{delete-horizontal-space}), which deletes all spaces and tabs
@c around the cursor.
2$B$D$N9T$rO"7k$9$k$K$O!"(B
$B%3%^%s%I(B@kbd{M-^}$B!J(B@code{delete-indentation}$B!K$r;H$$$^$9!#(B
$B$3$N%3%^%s%I$O!"8=:_9T$N9TF,$N;z2<$2$H9T6h@Z$j!J2~9TJ8;z!K$r(B
$B:o=|$7$F6uGr(B1$B8D$KCV$-49$($^$9!#(B
$B$?$@$7!"$3$N6uGr(B1$B8D$r>J$$$F$7$^$&!J(BLisp$B%3!<%I$K$OJXMx$J!KFCJL$J>l9g$,$"$j$^$9!#(B
2$B$D$N9T$r7R$2$?7k2L!"3+$-3g8L$dJD$83g8L$,O"B3$9$k>l9g!"(B
$B$"$k$$$O!"$5$i$K2~9T$,B3$/>l9g$G$9!#(B
$B8=:_9T$N;z2<$2$@$1$r:o=|$9$k$K$O!"(B
$B9TF,$K0\F0$7$F$+$i(B@kbd{M-\}$B!J(B@code{delete-horizontal-space}$B!K$r;H$$$^$9!#(B
$B$3$N%3%^%s%I$O!"%+!<%=%k!J%]%$%s%H!K$N<~$j$N6uGr$H%?%V$r$9$Y$F:o=|$7$^$9!#(B
@c If you have a fill prefix, @kbd{M-^} deletes the fill prefix if it
@c appears after the newline that is deleted. @xref{Fill Prefix}.
$B5M$a9~$_@\F,<-$,$"$k>l9g!"(B@kbd{M-^}$B$O!"(B
$B:o=|$5$l$k2~9T$ND>8e$K8=$l$k5M$a9~$_@\F,<-$r:o=|$7$^$9!#(B
@xref{Fill Prefix}$B!#(B
@kindex C-M-\
@kindex C-x TAB
@findex indent-region
@findex indent-rigidly
@c There are also commands for changing the indentation of several lines
@c at once. @kbd{C-M-\} (@code{indent-region}) applies to all the lines
@c that begin in the region; it indents each line in the ``usual'' way, as
@c if you had typed @key{TAB} at the beginning of the line. A numeric
@c argument specifies the column to indent to, and each line is shifted
@c left or right so that its first nonblank character appears in that
@c column. @kbd{C-x @key{TAB}} (@code{indent-rigidly}) moves all of the
@c lines in the region right by its argument (left, for negative
@c arguments). The whole group of lines moves rigidly sideways, which is
@c how the command gets its name.@refill
$B0lEY$KJ#?t$N9T$N;z2<$2$rJQ99$9$k%3%^%s%I$b$"$j$^$9!#(B
@kbd{C-M-\}$B!J(B@code{indent-region}$B!K$O!"(B
$B%j!<%8%g%sFb$G;O$^$k$9$Y$F$N9T$K:nMQ$7$^$9!#(B
$B$3$N%3%^%s%I$O!"9TF,$G(B@key{TAB}$B$rBG80$7$?$+$N$h$&$K(B
$B!XIaDL$N!YJ}K!$G3F9T$r;z2<$2$7$^$9!#(B
$B?t0z?t$O;z2<$2$9$k7e0LCV$r;XDj$7$^$9!#(B
$B$D$^$j!":G=i$N6uGr$G$J$$J8;z$,$=$N7e0LCV$K$/$k$h$&$K(B
$B9TA4BN$r1&$+:8$K?eJ?0\F0$7$^$9!#(B
@kbd{C-x @key{TAB}}$B!J(B@code{indent-rigidly}$B!K$O!"(B
$B%j!<%8%g%sFb$N$9$Y$F$N9T$r!"(B
$B0z?t$G;XDj$7$?J,$@$11&$K0\F0$7$^$9!J0z?t$,Ii$G$"$l$P:8$K0\F0!K!#(B
$BJ#?t$N9TA4It$r$-$A$C$HB7$($F!J(Brigidly$B!K2#$K0\F0$9$k$3$H$+$i!"(B
$B%3%^%s%I$K$O$3$N$h$&$JL>A0$,IU$$$F$$$^$9!#(B
@findex indent-relative
@c @kbd{M-x indent-relative} indents at point based on the previous line
@c (actually, the last nonempty line). It inserts whitespace at point, moving
@c point, until it is underneath an indentation point in the previous line.
@c An indentation point is the end of a sequence of whitespace or the end of
@c the line. If point is farther right than any indentation point in the
@c previous line, the whitespace before point is deleted and the first
@c indentation point then applicable is used. If no indentation point is
@c applicable even then, @code{indent-relative} runs @code{tab-to-tab-stop}
@kbd{M-x indent-relative}$B$O!"@h9T$9$k9T!J<B:]$K$O6u9T$G$J$$$$$A$P$s6a$/$N9T!K$K(B
$B4p$E$$$F%]%$%s%H0LCV$r;z2<$2$7$^$9!#(B
$B%]%$%s%H0LCV$K6uGr$rA^F~$7$F%]%$%s%H$r?J$a$F!"(B
$B%]%$%s%H$,@h9T$9$k9T$N;z2<$20LCV$N??2<$K$/$k$h$&$K$7$^$9!#(B
$B;z2<$20LCV$H$OO"B3$7$?GrJ8;z$NKvHx$+9TKv$N$3$H$G$9!#(B
$B%]%$%s%H$,@h9T$9$k9T$N$I$N;z2<$20LCV$h$j$b1&$K$"$k>l9g$K$O!"(B
$B%]%$%s%H$N$^$($NGrJ8;z$r:o=|$7$F$+$i!"(B
$B@h9T$9$k9T$NE,MQ2DG=$J:G=i$N;z2<$20LCV$^$G;z2<$2$7$^$9!#(B
$BE,MQ2DG=$J;z2<$20LCV$,$J$$>l9g$K$O!"(B
@code{indent-relative}$B$O(B@code{tab-to-tab-stop}$B$r<B9T$7$^$9(B
@ifinfo
@c (@pxref{Tab Stops}).
$B!J(B@pxref{Tab Stops}$B!K!#(B
@end ifinfo
@iftex
@c (see next section).
$B!J<!@a$r;2>H!K!#(B
@end iftex
@c @code{indent-relative} is the definition of @key{TAB} in Indented Text
@c mode. @xref{Text}.
$B;z2<$2%F%-%9%H!J(Bindented text$B!K%b!<%I$G$O!"(B
@key{TAB}$B$O(B@code{indent-relative}$B$HDj5A$5$l$^$9!#(B
@xref{Text}$B!#(B
@c @xref{Format Indentation}, for another way of specifying the
@c indentation for part of your text.
$B%F%-%9%H$N0lIt$r;z2<$2$9$kJL$NJ}K!$K$D$$$F$O(B@xref{Format Indentation}$B!#(B
@node Tab Stops, Just Spaces, Indentation Commands, Indentation
@c @section Tab Stops
@section $B%?%V%9%H%C%W(B
@c @cindex tab stops
@cindex $B%?%V%9%H%C%W(B
@c @cindex using tab stops in making tables
@cindex $BI=:n@.;~$N%?%V%9%H%C%W(B
@c @cindex tables, indentation for
@cindex $BI=$N$?$a$N;z2<$2(B
@cindex $B;z2<$2!"I=$r:n$k(B
@kindex M-i
@findex tab-to-tab-stop
@c For typing in tables, you can use Text mode's definition of @key{TAB},
@c @code{tab-to-tab-stop}. This command inserts indentation before point,
@c enough to reach the next tab stop column. If you are not in Text mode,
@c this command can be found on the key @kbd{M-i}.
$BI=$rF~NO$9$k$K$O!"%F%-%9%H!J(Btext$B%b!<%I!K$K$*$1$k(B@key{TAB}$B$NDj5A!"(B
@code{tab-to-tab-stop}$B$rMxMQ$G$-$^$9!#(B
$B$3$N%3%^%s%I$O!"%]%$%s%H$,$D$.$N%?%V%9%H%C%W0LCV$KC#$9$k$^$G(B
$B%]%$%s%H$N$^$($K;z2<$2$rA^F~$7$^$9!#(B
$B%F%-%9%H!J(Btext$B!K%b!<%I$G$J$/$F$b!"(B@kbd{M-i}$B$G$3$N%3%^%s%I$r<B9T$G$-$^$9!#(B
@findex edit-tab-stops
@findex edit-tab-stops-note-changes
@c @kindex C-c C-c @r{(Edit Tab Stops)}
@kindex C-c C-c @r{$B!J%?%V%9%H%C%W$N@_Dj!K(B}
@vindex tab-stop-list
@c You can specify the tab stops used by @kbd{M-i}. They are stored in a
@c variable called @code{tab-stop-list}, as a list of column-numbers in
@c increasing order.
@kbd{M-i}$B$,;HMQ$9$k%?%V%9%H%C%W$OG$0U$K@_Dj$G$-$^$9!#(B
$B$3$N@_Dj$O!">:=g$KJB$Y$?7eHV9f$N%j%9%H$H$7$F(B
@code{tab-stop-list}$B$H8F$P$l$kJQ?t$K3JG<$5$l$^$9!#(B
@c The convenient way to set the tab stops is with @kbd{M-x
@c edit-tab-stops}, which creates and selects a buffer containing a
@c description of the tab stop settings. You can edit this buffer to
@c specify different tab stops, and then type @kbd{C-c C-c} to make those
@c new tab stops take effect. @code{edit-tab-stops} records which buffer
@c was current when you invoked it, and stores the tab stops back in that
@c buffer; normally all buffers share the same tab stops and changing them
@c in one buffer affects all, but if you happen to make
@c @code{tab-stop-list} local in one buffer then @code{edit-tab-stops} in
@c that buffer will edit the local settings.
$B%?%V%9%H%C%W$r@_Dj$9$kJXMx$JJ}K!$O!"(B
@kbd{M-x edit-tab-stops}$B$r;H$&$3$H$G$9!#(B
$B$3$N%3%^%s%I$O!"%?%V%9%H%C%W$N@_Dj$r5-=R$7$?%P%C%U%!$r:n@.$7$FA*Br$7$^$9!#(B
$B$3$N%P%C%U%!$rJT=8$7$F:#$^$G$H$O0[$J$k%?%V%9%H%C%W$r;XDj$7!"(B
@kbd{C-c C-c}$B$HBG$C$F$=$N?7$?$J@_Dj$rM-8z$K$7$^$9!#(B
@code{edit-tab-stops}$B$O!"8F$P$l$?$H$-$N%+%l%s%H%P%C%U%!$r$"$i$+$8$a(B
$B5-O?$7$F$*$/$N$G!"$=$N%P%C%U%!$K?7$?$J%?%V%9%H%C%W$r@_Dj$7$^$9!#(B
$BDL>o!"A4%P%C%U%!$GF1$8%?%V%9%H%C%W$r6&M-$7$F$$$k$N$G!"(B
1$B$D$N%P%C%U%!$G%?%V%9%H%C%W$rJQ99$9$k$H!"$9$Y$F$N%P%C%U%!$K1F6A$r$7$^$9!#(B
$B$7$+$7!"$"$k%P%C%U%!$G(B@code{tab-stop-list}$B$r%m!<%+%k$K$7$F$*$/$H!"(B
$B$=$N%P%C%U%!$G(B@code{edit-tab-stops}$B$r<B9T$9$k$H%m!<%+%k$J@_Dj$rJT=8$7$^$9!#(B
@c Here is what the text representing the tab stops looks like for ordinary
@c tab stops every eight columns.
$B0lHLE*$K;H$o$l$k(B8$B7e$4$H$K@_Dj$5$l$?%?%V%9%H%C%W$N>l9g!"(B
$B@_DjMQ%P%C%U%!$NFbMF$O$D$.$N$h$&$K$J$j$^$9!#(B
@example
: : : : : :
0 1 2 3 4
0123456789012345678901234567890123456789012345678
To install changes, type C-c C-c
@end example
@c The first line contains a colon at each tab stop. The remaining lines
@c are present just to help you see where the colons are and know what to do.
1$B9TL\$O!"3F%?%V%9%H%C%W0LCV$r%3%m%s$GI=$7$^$9!#(B
$B;D$j$N9T$O!"%?%V%9%H%C%W0LCV$rFI$_<h$j$d$9$/$?$a$d;H$$J}$G$9!#(B
@c Note that the tab stops that control @code{tab-to-tab-stop} have nothing
@c to do with displaying tab characters in the buffer. @xref{Display Vars},
@c for more information on that.
@code{tab-to-tab-stop}$B$r@)8f$9$k%?%V%9%H%C%W$H!"(B
$B%P%C%U%!Fb$G$N%?%VJ8;z$NI=<($H$O!"4X78$,$J$$$3$H$KCm0U$7$F$/$@$5$$!#(B
$B>\:Y$K$D$$$F$O(B@xref{Display Vars}$B!#(B
@node Just Spaces,, Tab Stops, Indentation
@c @section Tabs vs. Spaces
@section $B%?%V$H6uGr(B
@vindex indent-tabs-mode
@c Emacs normally uses both tabs and spaces to indent lines. If you prefer,
@c all indentation can be made from spaces only. To request this, set
@c @code{indent-tabs-mode} to @code{nil}. This is a per-buffer variable;
@c altering the variable affects only the current buffer, but there is a
@c default value which you can change as well. @xref{Locals}.
Emacs$B$G$O!"DL>o!"9T$N;z2<$2$K$O%?%V$H6uGr$NN>J}$r;HMQ$7$^$9!#(B
$B$7$+$7!"6uGr$@$1$rMQ$$$F;z2<$2$r9T$&$3$H$b2DG=$G$9!#(B
$B$=$&$9$k$K$O!"JQ?t(B@code{indent-tabs-mode}$B$K(B@code{nil}$B$r@_Dj$7$^$9!#(B
$B$3$NJQ?t$O%P%C%U%!$4$H$NJQ?t$G$9!#(B
$BJQ?t$rJQ99$7$F$b%+%l%s%H%P%C%U%!$@$1$K1F6A$7$^$9$,!"(B
$B%G%U%)%k%HCM$rJQ99$9$k$3$H$b$G$-$^$9!#(B
@xref{Locals}$B!#(B
@findex tabify
@findex untabify
@c There are also commands to convert tabs to spaces or vice versa, always
@c preserving the columns of all nonblank text. @kbd{M-x tabify} scans the
@c region for sequences of spaces, and converts sequences of at least three
@c spaces to tabs if that can be done without changing indentation. @kbd{M-x
@c untabify} changes all tabs in the region to appropriate numbers of spaces.
$B6uGr0J30$N%F%-%9%H$N7e$rJ]B8$7$?$^$^!"%?%V$r6uGr!J$"$k$$$O$=$N5U!K$K(B
$BJQ49$9$k%3%^%s%I$b$"$j$^$9!#(B
@kbd{M-x tabify}$B$O!"%j!<%8%g%sFb$NO"B3$9$k6uGr$rC5$7$F!"(B
$B;z2<$2$rJQ$($k$3$H$,$J$1$l$P>/$J$/$H$bO"B3$9$k(B3$B8D$N6uGr$r%?%V$KJQ49$7$^$9!#(B
@kbd{M-x untabify}$B$O!"%j!<%8%g%sFb$N$9$Y$F$N%?%V$r(B
$BE,@Z$J8D?t$N6uGr$KJQ49$7$^$9!#(B
|