Mercurial > emacs
comparison doc/misc/cc-mode.texi @ 86093:d223d695f3f3
(Electric Keys, Electric Keys, Custom Macros): Fix typos.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Thu, 15 Nov 2007 15:37:44 +0000 |
parents | de920bbb6866 |
children | cdd30283527d 53108e6cea98 |
comparison
equal
deleted
inserted
replaced
86092:22332515837b | 86093:d223d695f3f3 |
---|---|
1226 inserting themselves they perform some other action, such as | 1226 inserting themselves they perform some other action, such as |
1227 reindenting the line. This reindentation saves you from having to | 1227 reindenting the line. This reindentation saves you from having to |
1228 reindent a line manually after typing, say, a @samp{@}}. A few | 1228 reindent a line manually after typing, say, a @samp{@}}. A few |
1229 keywords, such as @code{else}, also trigger electric action. | 1229 keywords, such as @code{else}, also trigger electric action. |
1230 | 1230 |
1231 You can inhibit the electric behaviour described here by disabling | 1231 You can inhibit the electric behavior described here by disabling |
1232 electric minor mode (@pxref{Minor Modes}). | 1232 electric minor mode (@pxref{Minor Modes}). |
1233 | 1233 |
1234 Common to all these keys is that they only behave electrically when | 1234 Common to all these keys is that they only behave electrically when |
1235 used in normal code (as contrasted with getting typed in a string | 1235 used in normal code (as contrasted with getting typed in a string |
1236 literal or comment). Those which cause re-indentation do so only when | 1236 literal or comment). Those which cause re-indentation do so only when |
1279 whitespace before it). | 1279 whitespace before it). |
1280 | 1280 |
1281 Additionally, you can configure @ccmode{} so that typing a slash at | 1281 Additionally, you can configure @ccmode{} so that typing a slash at |
1282 the start of a line within a block comment will terminate the | 1282 the start of a line within a block comment will terminate the |
1283 comment. You don't need to have electric minor mode enabled to get | 1283 comment. You don't need to have electric minor mode enabled to get |
1284 this behaviour. @xref{Clean-ups}. | 1284 this behavior. @xref{Clean-ups}. |
1285 | 1285 |
1286 In AWK mode, @samp{*} and @samp{/} do not delimit comments and are not | 1286 In AWK mode, @samp{*} and @samp{/} do not delimit comments and are not |
1287 electric. | 1287 electric. |
1288 | 1288 |
1289 @item < | 1289 @item < |
6456 @cindex macros | 6456 @cindex macros |
6457 @cindex preprocessor directives | 6457 @cindex preprocessor directives |
6458 @comment !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 6458 @comment !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
6459 | 6459 |
6460 Normally, the lines in a multi-line macro are indented relative to | 6460 Normally, the lines in a multi-line macro are indented relative to |
6461 each other as though they were code. You can suppress this behaviour | 6461 each other as though they were code. You can suppress this behavior |
6462 by setting the following user option: | 6462 by setting the following user option: |
6463 | 6463 |
6464 @defopt c-syntactic-indentation-in-macros | 6464 @defopt c-syntactic-indentation-in-macros |
6465 @vindex syntactic-indentation-in-macros (c-) | 6465 @vindex syntactic-indentation-in-macros (c-) |
6466 Enable syntactic analysis inside macros, which is the default. If this | 6466 Enable syntactic analysis inside macros, which is the default. If this |