changeset 4979:e3c47db646fd

Comment change.
author Richard M. Stallman <rms@gnu.org>
date Thu, 11 Nov 1993 05:25:09 +0000
parents fec7580888dd
children 50708e8b133b
files lisp/progmodes/c-mode.el
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/c-mode.el	Thu Nov 11 04:43:49 1993 +0000
+++ b/lisp/progmodes/c-mode.el	Thu Nov 11 05:25:09 1993 +0000
@@ -1137,6 +1137,13 @@
 	    (if (= (following-char) ?})
 		(setq this-indent (- this-indent c-indent-level)))
 	    (if (= (following-char) ?{)
+		;; Don't move an open-brace in column 0.
+		;; This is good when constructs such as
+		;; `extern "C" {' surround a function definition
+		;; that should be indented as usual.
+		;; It is also good for nested functions.
+		;; It is bad when an open-brace is indented at column 0
+		;; and you want to fix that, but we can't win 'em all.
 		(if (zerop (current-column))
 		    (setq this-indent 0)
 		  (setq this-indent (+ this-indent c-brace-offset))))