diff options
author | Alan Mackenzie <acm@muc.de> | 2007-04-07 19:50:06 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2007-04-07 19:50:06 +0000 |
commit | 8ccf9f7ab1e3ba42ee6fef1f89347421106610c7 (patch) | |
tree | 01e5bef045beaa140e890999286afaf38dba9bc5 /lisp/progmodes/cc-cmds.el | |
parent | 073ce6e948d19becdea298abbf0b6fbba9d6d4e1 (diff) | |
download | emacs-8ccf9f7ab1e3ba42ee6fef1f89347421106610c7.tar.gz |
(c-electric-paren): clean-up space-before-funcall: only insert space when on
identifier, etc. Patch by David Hansen.
----------------------------------------------------------------------
Diffstat (limited to 'lisp/progmodes/cc-cmds.el')
-rw-r--r-- | lisp/progmodes/cc-cmds.el | 10 |
1 files 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) |