]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-electric-brace): Make preserve-p nil at BOB.
authorRichard M. Stallman <rms@gnu.org>
Mon, 11 Aug 1997 23:51:04 +0000 (23:51 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 11 Aug 1997 23:51:04 +0000 (23:51 +0000)
lisp/progmodes/cc-cmds.el

index cd235fdf1008bf413ecbfd9aab7d26b057be4314..46d5747f9d00d72b3f9230a361f04eaa64fcd6b8 100644 (file)
@@ -196,7 +196,8 @@ the brace is inserted inside a literal."
            blink-paren-function
            (insertion-point (point))
            delete-temp-newline
-           (preserve-p (eq ?\  (char-syntax (char-before))))
+           (preserve-p (and (not (bobp))
+                            (eq ?\  (char-syntax (char-before)))))
            ;; shut this up too
            (c-echo-syntactic-information-p nil)
            (syntax (progn