aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-11-11 05:25:09 +0000
committerRichard M. Stallman1993-11-11 05:25:09 +0000
commite6033883a5ddfe1566cf3bc400ec258a4c2c9fce (patch)
tree5992f2ba37d01ef8843c9118b82546b8b51b1189
parentb26f0e4ea7c12f91b6f8ea569fcd20863f338dd9 (diff)
downloademacs-e6033883a5ddfe1566cf3bc400ec258a4c2c9fce.tar.gz
emacs-e6033883a5ddfe1566cf3bc400ec258a4c2c9fce.zip
Comment change.
-rw-r--r--lisp/progmodes/c-mode.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/progmodes/c-mode.el b/lisp/progmodes/c-mode.el
index 1bc95a77243..bbb195a2b91 100644
--- a/lisp/progmodes/c-mode.el
+++ b/lisp/progmodes/c-mode.el
@@ -1137,6 +1137,13 @@ If within a string or comment, move by sentences instead of statements."
1137 (if (= (following-char) ?}) 1137 (if (= (following-char) ?})
1138 (setq this-indent (- this-indent c-indent-level))) 1138 (setq this-indent (- this-indent c-indent-level)))
1139 (if (= (following-char) ?{) 1139 (if (= (following-char) ?{)
1140 ;; Don't move an open-brace in column 0.
1141 ;; This is good when constructs such as
1142 ;; `extern "C" {' surround a function definition
1143 ;; that should be indented as usual.
1144 ;; It is also good for nested functions.
1145 ;; It is bad when an open-brace is indented at column 0
1146 ;; and you want to fix that, but we can't win 'em all.
1140 (if (zerop (current-column)) 1147 (if (zerop (current-column))
1141 (setq this-indent 0) 1148 (setq this-indent 0)
1142 (setq this-indent (+ this-indent c-brace-offset)))) 1149 (setq this-indent (+ this-indent c-brace-offset))))