diff options
| -rw-r--r-- | lisp/progmodes/c-mode.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/progmodes/c-mode.el b/lisp/progmodes/c-mode.el index 667f1d174e9..d9c673cd384 100644 --- a/lisp/progmodes/c-mode.el +++ b/lisp/progmodes/c-mode.el | |||
| @@ -1112,6 +1112,10 @@ ENDPOS is encountered." | |||
| 1112 | (if (car indent-stack) | 1112 | (if (car indent-stack) |
| 1113 | (- (car indent-stack)) | 1113 | (- (car indent-stack)) |
| 1114 | opoint)))) | 1114 | opoint)))) |
| 1115 | ;; t means we are in a block comment and should | ||
| 1116 | ;; calculate accordingly. | ||
| 1117 | (if (eq val t) | ||
| 1118 | (setq val (calculate-c-indent-within-comment))) | ||
| 1115 | (setcar indent-stack | 1119 | (setcar indent-stack |
| 1116 | (setq this-indent val)))) | 1120 | (setq this-indent val)))) |
| 1117 | ;; Adjust line indentation according to its contents | 1121 | ;; Adjust line indentation according to its contents |