Mercurial > emacs
diff lisp/progmodes/cc-cmds.el @ 65694:c2508361021b
(c-electric-paren): Call old-blink-paren only for close-paren.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 25 Sep 2005 23:58:28 +0000 |
parents | 629afbe74e61 |
children | 04d2abb755d9 b1c1fc853d2f |
line wrap: on
line diff
--- a/lisp/progmodes/cc-cmds.el Sun Sep 25 23:57:10 2005 +0000 +++ b/lisp/progmodes/cc-cmds.el Sun Sep 25 23:58:28 2005 +0000 @@ -907,7 +907,8 @@ ;; 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 @@ (delete-region beg end)))) (and (not executing-kbd-macro) old-blink-paren + (not noblink) (funcall old-blink-paren)))))) (defun c-electric-continued-statement ()