From: Richard M. Stallman Date: Mon, 11 Aug 1997 23:51:04 +0000 (+0000) Subject: (c-electric-brace): Make preserve-p nil at BOB. X-Git-Tag: emacs-20.1~642 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=811fd07a2fb5a79db5fbb57b7da53d47875c59e4;p=emacs.git (c-electric-brace): Make preserve-p nil at BOB. --- 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