From 2c73e345cc666982dbcb9d73e4fdd5a3348d19bc Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Sat, 21 Jul 2012 09:41:48 +0800 Subject: [PATCH] Use match-string-no-properties instead in c-defun-name for consistency. --- lisp/ChangeLog | 5 +++++ lisp/progmodes/cc-cmds.el | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f305d971a0f..9cda817fab6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-07-21 Leo Liu + + * progmodes/cc-cmds.el (c-defun-name): Use + match-string-no-properties instead for consistency. + 2012-07-20 Leo Liu * progmodes/cc-cmds.el (c-defun-name): Handle objc selectors properly. diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index 3ec7386ece0..daa2e455c28 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el @@ -1832,9 +1832,9 @@ with a brace block." (kw-re (concat "\\(?:" c-symbol-key "\\)?:")) (stretches)) (when (c-syntactic-re-search-forward c-symbol-key bound t t t) - (push (match-string 0) stretches) + (push (match-string-no-properties 0) stretches) (while (c-syntactic-re-search-forward kw-re bound t t t) - (push (match-string 0) stretches))) + (push (match-string-no-properties 0) stretches))) (apply 'concat (nreverse stretches)))) (t -- 2.11.4.GIT