diff options
| author | Richard M. Stallman | 1992-08-29 08:27:31 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1992-08-29 08:27:31 +0000 |
| commit | 1635fcdddd1e772a7824d1094ac3272005d95c96 (patch) | |
| tree | f0c30f2a9339c47f5445be0bfcf5943ca8cf791e | |
| parent | fcb9ffc8ae2c2f01b124a32fd776b5ab11033d70 (diff) | |
| download | emacs-1635fcdddd1e772a7824d1094ac3272005d95c96.tar.gz emacs-1635fcdddd1e772a7824d1094ac3272005d95c96.zip | |
*** empty log message ***
| -rw-r--r-- | lisp/progmodes/c-mode.el | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lisp/progmodes/c-mode.el b/lisp/progmodes/c-mode.el index 2a64da0971f..3d135f83d81 100644 --- a/lisp/progmodes/c-mode.el +++ b/lisp/progmodes/c-mode.el | |||
| @@ -629,9 +629,15 @@ Returns nil if line starts inside a string, t if in a comment." | |||
| 629 | ;; The first following code counts | 629 | ;; The first following code counts |
| 630 | ;; if it is before the line we want to indent. | 630 | ;; if it is before the line we want to indent. |
| 631 | (and (< (point) indent-point) | 631 | (and (< (point) indent-point) |
| 632 | (if (> colon-line-end (point)) | 632 | (- |
| 633 | (- (current-indentation) c-label-offset) | 633 | (if (> colon-line-end (point)) |
| 634 | (current-column))))) | 634 | (- (current-indentation) c-label-offset) |
| 635 | (current-column)) | ||
| 636 | ;; If prev stmt starts with open-brace, that | ||
| 637 | ;; open brace was offset by c-brace-offset. | ||
| 638 | ;; Compensate to get the column where | ||
| 639 | ;; an ordinary statement would start. | ||
| 640 | (if (= (following-char) ?\{) c-brace-offset 0))))) | ||
| 635 | ;; If no previous statement, | 641 | ;; If no previous statement, |
| 636 | ;; indent it relative to line brace is on. | 642 | ;; indent it relative to line brace is on. |
| 637 | ;; For open brace in column zero, don't let statement | 643 | ;; For open brace in column zero, don't let statement |