# HG changeset patch # User Richard M. Stallman # Date 715076851 0 # Node ID f6f13367d93ce8039b029968b75d841559f8bff7 # Parent a411429c4140b84ba5a7dec28b835fa70237e634 *** empty log message *** diff -r a411429c4140 -r f6f13367d93c lisp/progmodes/c-mode.el --- a/lisp/progmodes/c-mode.el Sat Aug 29 03:33:12 1992 +0000 +++ b/lisp/progmodes/c-mode.el Sat Aug 29 08:27:31 1992 +0000 @@ -629,9 +629,15 @@ ;; 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