# HG changeset patch # User Richard M. Stallman # Date 752995509 0 # Node ID e3c47db646fdf6ceb6c7522353d9b4af53ab2aea # Parent fec7580888dd66c3d64c01e5f916f56b7a9d4b0f Comment change. diff -r fec7580888dd -r e3c47db646fd lisp/progmodes/c-mode.el --- 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))))