# HG changeset patch # User Richard M. Stallman # Date 739753081 0 # Node ID 6895c2df25a664959cb8b62419bb98dccf89c500 # Parent ae0389767674156c5a1476b38330c9b2602fd89a (calculate-c++-indent): Respect c-continued-brace-offset (as in c-mode.el). diff -r ae0389767674 -r 6895c2df25a6 lisp/progmodes/cplus-md.el --- 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)