Mercurial > emacs
changeset 77041:831765c54f39
(c-electric-paren): clean-up space-before-funcall: only insert space when on
identifier, etc. Patch by David Hansen.
----------------------------------------------------------------------
author | Alan Mackenzie <acm@muc.de> |
---|---|
date | Sat, 07 Apr 2007 19:50:06 +0000 |
parents | 175f158c7c2f |
children | 43919a230e90 |
files | lisp/progmodes/cc-cmds.el |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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)