From 8ccf9f7ab1e3ba42ee6fef1f89347421106610c7 Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Sat, 7 Apr 2007 19:50:06 +0000 Subject: [PATCH] (c-electric-paren): clean-up space-before-funcall: only insert space when on identifier, etc. Patch by David Hansen. ---------------------------------------------------------------------- --- lisp/progmodes/cc-cmds.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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) -- 2.39.5