changeset 4202:4d0dd361b49a

(indent-c-exp): Call calculate-c-indent-within-comment when appropriate.
author Richard M. Stallman <rms@gnu.org>
date Wed, 21 Jul 1993 08:50:30 +0000
parents 8b53e0fa08b4
children b42338a458a5
files lisp/progmodes/c-mode.el
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/c-mode.el	Wed Jul 21 08:44:36 1993 +0000
+++ b/lisp/progmodes/c-mode.el	Wed Jul 21 08:50:30 1993 +0000
@@ -1112,6 +1112,10 @@
 			   (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