From: Alan Mackenzie Date: Sat, 7 Apr 2007 19:50:06 +0000 (+0000) Subject: (c-electric-paren): clean-up space-before-funcall: only insert space when on X-Git-Tag: emacs-pretest-22.0.98~215 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8ccf9f7ab1e3ba42ee6fef1f89347421106610c7;p=emacs.git (c-electric-paren): clean-up space-before-funcall: only insert space when on identifier, etc. Patch by David Hansen. ---------------------------------------------------------------------- --- diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index e142dcb06da..debdfe44cb4 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el @@ -1262,11 +1262,11 @@ newline cleanups are done if appropriate; see the variable `c-cleanup-list'." (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)