Use match-string-no-properties instead in c-defun-name

for consistency.
This commit is contained in:
Leo Liu 2012-07-21 09:41:48 +08:00
parent 3646bcd6b8
commit 2c73e345cc
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2012-07-21 Leo Liu <sdl.web@gmail.com>
* progmodes/cc-cmds.el (c-defun-name): Use
match-string-no-properties instead for consistency.
2012-07-20 Leo Liu <sdl.web@gmail.com>
* progmodes/cc-cmds.el (c-defun-name): Handle objc selectors properly.

View file

@ -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