diff options
Diffstat (limited to 'Documentation/CodingStyle')
| -rw-r--r-- | Documentation/CodingStyle | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle index 449a8a19fc21..6e0b7b99df18 100644 --- a/Documentation/CodingStyle +++ b/Documentation/CodingStyle | |||
| @@ -13,7 +13,7 @@ and NOT read it. Burn them, it's a great symbolic gesture. | |||
| 13 | Anyway, here goes: | 13 | Anyway, here goes: |
| 14 | 14 | ||
| 15 | 15 | ||
| 16 | Chapter 1: Indentation | 16 | Chapter 1: Indentation |
| 17 | 17 | ||
| 18 | Tabs are 8 characters, and thus indentations are also 8 characters. | 18 | Tabs are 8 characters, and thus indentations are also 8 characters. |
| 19 | There are heretic movements that try to make indentations 4 (or even 2!) | 19 | There are heretic movements that try to make indentations 4 (or even 2!) |
| @@ -503,9 +503,9 @@ values. To do the latter, you can stick the following in your .emacs file: | |||
| 503 | (defun c-lineup-arglist-tabs-only (ignored) | 503 | (defun c-lineup-arglist-tabs-only (ignored) |
| 504 | "Line up argument lists by tabs, not spaces" | 504 | "Line up argument lists by tabs, not spaces" |
| 505 | (let* ((anchor (c-langelem-pos c-syntactic-element)) | 505 | (let* ((anchor (c-langelem-pos c-syntactic-element)) |
| 506 | (column (c-langelem-2nd-pos c-syntactic-element)) | 506 | (column (c-langelem-2nd-pos c-syntactic-element)) |
| 507 | (offset (- (1+ column) anchor)) | 507 | (offset (- (1+ column) anchor)) |
| 508 | (steps (floor offset c-basic-offset))) | 508 | (steps (floor offset c-basic-offset))) |
| 509 | (* (max steps 1) | 509 | (* (max steps 1) |
| 510 | c-basic-offset))) | 510 | c-basic-offset))) |
| 511 | 511 | ||
