changeset 4388:c020f9a57cfe

(indent-c-exp): Don't move an { from column 0.
author Richard M. Stallman <rms@gnu.org>
date Sun, 01 Aug 1993 05:17:42 +0000
parents 3e18f6a1915b
children 102019d30432
files lisp/progmodes/c-mode.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.