]> git.eshelyaron.com Git - emacs.git/commitdiff
Use match-string-no-properties instead in c-defun-name
authorLeo Liu <sdl.web@gmail.com>
Sat, 21 Jul 2012 01:41:48 +0000 (09:41 +0800)
committerLeo Liu <sdl.web@gmail.com>
Sat, 21 Jul 2012 01:41:48 +0000 (09:41 +0800)
for consistency.

lisp/ChangeLog
lisp/progmodes/cc-cmds.el

index f305d971a0f2faa4d9d09e0d21a585686d2352fe..9cda817fab6cdd75159d4e710becd75a54f8eeb1 100644 (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.
index 3ec7386ece086bc984b49af206ef173630f5c598..daa2e455c28bc63edf3ce9026ab2ae452fff3276 100644 (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