Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b23c9e46
Commit
b23c9e46
authored
Mar 21, 1996
by
Richard M. Stallman
Browse files
(indent-c++-exp): Use calculate-c-indent-after-brace.
(c++-mode): Require c-mode.
parent
c87b46a0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lisp/progmodes/cplus-md.el
lisp/progmodes/cplus-md.el
+3
-1
No files found.
lisp/progmodes/cplus-md.el
View file @
b23c9e46
...
...
@@ -320,6 +320,8 @@ Turning on C++ mode calls the value of the variable `c++-mode-hook' with
no args if that value is non-nil."
(interactive)
(kill-all-local-variables)
;; This code depends on the old C mode.
(require 'c-mode)
(use-local-map c++-mode-map)
(set-syntax-table c++-mode-syntax-table)
(setq major-mode 'c++-mode
...
...
@@ -801,7 +803,7 @@ Returns nil if line starts inside a string, t if in a comment."
(if (= (char-after (car contain-stack)) ?{)
(save-excursion
(goto-char (car contain-stack))
(setq val (
+ c-indent-level (current-column)
)))
(setq val (
calculate-c-indent-after-brace
)))
(setq val (calculate-c++-indent
(if (car indent-stack)
(- (car indent-stack))))))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment