Mercurial > emacs
diff lisp/progmodes/cc-cmds.el @ 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 | 72a276765477 |
children | 93765c8a2ed2 |
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)