# HG changeset patch # User Alan Mackenzie # Date 1175975406 0 # Node ID 831765c54f39db3335c5468cffcc84f03a196673 # Parent 175f158c7c2f20c1d85355d6da983a28565e1a2c (c-electric-paren): clean-up space-before-funcall: only insert space when on identifier, etc. Patch by David Hansen. ---------------------------------------------------------------------- diff -r 175f158c7c2f -r 831765c54f39 lisp/progmodes/cc-cmds.el --- a/lisp/progmodes/cc-cmds.el Sat Apr 07 19:43:35 2007 +0000 +++ b/lisp/progmodes/cc-cmds.el Sat Apr 07 19:50:06 2007 +0000 @@ -1262,11 +1262,11 @@ (backward-char) (skip-chars-backward " \t") (setq beg (point)) - (c-save-buffer-state () (c-on-identifier)) - ;; Don't add a space into #define FOO().... - (not (and (c-beginning-of-macro) - (c-forward-over-cpp-define-id) - (eq (point) beg))))) + (and (c-save-buffer-state () (c-on-identifier)) + ;; Don't add a space into #define FOO().... + (not (and (c-beginning-of-macro) + (c-forward-over-cpp-define-id) + (eq (point) beg)))))) (save-excursion (delete-region beg end) (goto-char beg)