From 3746159f73288a1866ea862b7cd79da6aeca14a6 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 21 Jul 1993 08:50:30 +0000 Subject: [PATCH] (indent-c-exp): Call calculate-c-indent-within-comment when appropriate. --- lisp/progmodes/c-mode.el | 4 ++++ 1 file changed, 4 insertions(+) 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." (if (car indent-stack) (- (car indent-stack)) opoint)))) + ;; t means we are in a block comment and should + ;; calculate accordingly. + (if (eq val t) + (setq val (calculate-c-indent-within-comment))) (setcar indent-stack (setq this-indent val)))) ;; Adjust line indentation according to its contents -- 2.39.5