]> git.eshelyaron.com Git - emacs.git/commitdiff
(indent-c-exp): Call calculate-c-indent-within-comment when appropriate.
authorRichard M. Stallman <rms@gnu.org>
Wed, 21 Jul 1993 08:50:30 +0000 (08:50 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 21 Jul 1993 08:50:30 +0000 (08:50 +0000)
lisp/progmodes/c-mode.el

index 667f1d174e9e17379e50e1762bfe436c58382b07..d9c673cd384837ebcedd95f07db3ec42ec658e45 100644 (file)
@@ -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