From: Richard M. Stallman Date: Wed, 21 Jul 1993 08:50:30 +0000 (+0000) Subject: (indent-c-exp): Call calculate-c-indent-within-comment when appropriate. X-Git-Tag: emacs-19.34~11649 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3746159f73288a1866ea862b7cd79da6aeca14a6;p=emacs.git (indent-c-exp): Call calculate-c-indent-within-comment when appropriate. --- 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