From 811fd07a2fb5a79db5fbb57b7da53d47875c59e4 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 11 Aug 1997 23:51:04 +0000 Subject: [PATCH] (c-electric-brace): Make preserve-p nil at BOB. --- lisp/progmodes/cc-cmds.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2