changeset 3627:6895c2df25a6

(calculate-c++-indent): Respect c-continued-brace-offset (as in c-mode.el).
author Richard M. Stallman <rms@gnu.org>
date Thu, 10 Jun 1993 22:58:01 +0000
parents ae0389767674
children 3f0d7802decb
files lisp/progmodes/cplus-md.el
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/cplus-md.el	Thu Jun 10 21:31:56 1993 +0000
+++ b/lisp/progmodes/cplus-md.el	Thu Jun 10 22:58:01 1993 +0000
@@ -515,7 +515,11 @@
 		 ;; previous line of the statement.
 		 (progn
 		   (c-backward-to-start-of-continued-exp containing-sexp)
-		   (+ c-continued-statement-offset (current-column)))
+		   (+ c-continued-statement-offset (current-column)
+                      (if (save-excursion (goto-char indent-point)
+					  (skip-chars-forward " \t")
+					  (eq (following-char) ?{))
+			  c-continued-brace-offset 0)))
 	       ;; This line starts a new statement.
 	       ;; Position following last unclosed open.
 	       (goto-char containing-sexp)