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
1635fcdd
Commit
1635fcdd
authored
Aug 29, 1992
by
Richard M. Stallman
Browse files
*** empty log message ***
parent
fcb9ffc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
lisp/progmodes/c-mode.el
lisp/progmodes/c-mode.el
+9
-3
No files found.
lisp/progmodes/c-mode.el
View file @
1635fcdd
...
...
@@ -629,9 +629,15 @@ Returns nil if line starts inside a string, t if in a comment."
;; The first following code counts
;; if it is before the line we want to indent.
(and (< (point) indent-point)
(if (> colon-line-end (point))
(- (current-indentation) c-label-offset)
(current-column)))))
(-
(if (> colon-line-end (point))
(- (current-indentation) c-label-offset)
(current-column))
;; If prev stmt starts with open-brace, that
;; open brace was offset by c-brace-offset.
;; Compensate to get the column where
;; an ordinary statement would start.
(if (= (following-char) ?\{) c-brace-offset 0)))))
;; If no previous statement,
;; indent it relative to line brace is on.
;; For open brace in column zero, don't let statement
...
...
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