diff options
| author | Richard M. Stallman | 1993-06-10 22:58:01 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-06-10 22:58:01 +0000 |
| commit | dc606f020d1836e1a99110c10ccdc9d69ca49b5a (patch) | |
| tree | 363beb8b4cd5c8aca92483d768410b7c28005581 | |
| parent | 7d3221d7e32e0c9b359d46fd7a74e0d5b220dbdd (diff) | |
| download | emacs-dc606f020d1836e1a99110c10ccdc9d69ca49b5a.tar.gz emacs-dc606f020d1836e1a99110c10ccdc9d69ca49b5a.zip | |
(calculate-c++-indent): Respect
c-continued-brace-offset (as in c-mode.el).
| -rw-r--r-- | lisp/progmodes/cplus-md.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/progmodes/cplus-md.el b/lisp/progmodes/cplus-md.el index 8548c3826e5..b2e6d102a24 100644 --- a/lisp/progmodes/cplus-md.el +++ b/lisp/progmodes/cplus-md.el | |||
| @@ -515,7 +515,11 @@ Returns nil if line starts inside a string, t if in a comment." | |||
| 515 | ;; previous line of the statement. | 515 | ;; previous line of the statement. |
| 516 | (progn | 516 | (progn |
| 517 | (c-backward-to-start-of-continued-exp containing-sexp) | 517 | (c-backward-to-start-of-continued-exp containing-sexp) |
| 518 | (+ c-continued-statement-offset (current-column))) | 518 | (+ c-continued-statement-offset (current-column) |
| 519 | (if (save-excursion (goto-char indent-point) | ||
| 520 | (skip-chars-forward " \t") | ||
| 521 | (eq (following-char) ?{)) | ||
| 522 | c-continued-brace-offset 0))) | ||
| 519 | ;; This line starts a new statement. | 523 | ;; This line starts a new statement. |
| 520 | ;; Position following last unclosed open. | 524 | ;; Position following last unclosed open. |
| 521 | (goto-char containing-sexp) | 525 | (goto-char containing-sexp) |