From 96fdce72bb41205baa8f82abb3580682035805db Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 25 Sep 2005 23:58:28 +0000 Subject: [PATCH] (c-electric-paren): Call old-blink-paren only for close-paren. --- lisp/progmodes/cc-cmds.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index 039ef3ccebf..42808c3e307 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el @@ -907,7 +907,8 @@ is nil." ;; be most disruptive. We'll blink it ourselves ;; afterwards. (old-blink-paren blink-paren-function) - blink-paren-function) + blink-paren-function + (noblink (eq last-input-event ?\())) (self-insert-command (prefix-numeric-value arg)) (if c-syntactic-indentation (indent-according-to-mode)) @@ -982,6 +983,7 @@ is nil." (delete-region beg end)))) (and (not executing-kbd-macro) old-blink-paren + (not noblink) (funcall old-blink-paren)))))) (defun c-electric-continued-statement () -- 2.39.2