aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-07-21 08:50:30 +0000
committerRichard M. Stallman1993-07-21 08:50:30 +0000
commit3746159f73288a1866ea862b7cd79da6aeca14a6 (patch)
tree8d39d9606c665b634454ddf1b351cf5df83bdb96
parent9ce49c8d7741df95faec6bf7c1ecb4d411d79dc1 (diff)
downloademacs-3746159f73288a1866ea862b7cd79da6aeca14a6.tar.gz
emacs-3746159f73288a1866ea862b7cd79da6aeca14a6.zip
(indent-c-exp): Call calculate-c-indent-within-comment when appropriate.
-rw-r--r--lisp/progmodes/c-mode.el4
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