# HG changeset patch # User Richard M. Stallman # Date 744182262 0 # Node ID c020f9a57cfec6d10f0d52dc07afbf0cceab2e04 # Parent 3e18f6a1915bea34b8754194acfc15495ac7a0bc (indent-c-exp): Don't move an { from column 0. diff -r 3e18f6a1915b -r c020f9a57cfe lisp/progmodes/c-mode.el --- a/lisp/progmodes/c-mode.el Sat Jul 31 22:35:20 1993 +0000 +++ b/lisp/progmodes/c-mode.el Sun Aug 01 05:17:42 1993 +0000 @@ -1137,7 +1137,9 @@ (if (= (following-char) ?}) (setq this-indent (- this-indent c-indent-level))) (if (= (following-char) ?{) - (setq this-indent (+ this-indent c-brace-offset))) + (if (zerop (current-column)) + (setq this-indent 0) + (setq this-indent (+ this-indent c-brace-offset)))) ;; Don't leave indentation in empty lines. (if (eolp) (setq this-indent 0)) ;; Put chosen indentation into effect.