diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-08-11 23:51:04 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-08-11 23:51:04 +0000 |
commit | 811fd07a2fb5a79db5fbb57b7da53d47875c59e4 (patch) | |
tree | 1a807160c5434e3a7ba1ffceb7f69506d1a57dd8 /lisp/progmodes/cc-cmds.el | |
parent | 9b8ef27dedb6746a5c42a6a6841c14202e6cd0b7 (diff) | |
download | emacs-811fd07a2fb5a79db5fbb57b7da53d47875c59e4.tar.gz |
(c-electric-brace): Make preserve-p nil at BOB.
Diffstat (limited to 'lisp/progmodes/cc-cmds.el')
-rw-r--r-- | lisp/progmodes/cc-cmds.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index cd235fdf100..46d5747f9d0 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el @@ -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 |