emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/emacs-24 r108077: Use match-string-no-prope


From: Leo Liu
Subject: [Emacs-diffs] /srv/bzr/emacs/emacs-24 r108077: Use match-string-no-properties instead in c-defun-name
Date: Sat, 21 Jul 2012 09:41:48 +0800
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 108077
committer: Leo Liu <address@hidden>
branch nick: emacs-24
timestamp: Sat 2012-07-21 09:41:48 +0800
message:
  Use match-string-no-properties instead in c-defun-name
  
  for consistency.
modified:
  lisp/ChangeLog
  lisp/progmodes/cc-cmds.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2012-07-20 21:18:52 +0000
+++ b/lisp/ChangeLog    2012-07-21 01:41:48 +0000
@@ -1,3 +1,8 @@
+2012-07-21  Leo Liu  <address@hidden>
+
+       * progmodes/cc-cmds.el (c-defun-name): Use
+       match-string-no-properties instead for consistency.
+
 2012-07-20  Leo Liu  <address@hidden>
 
        * progmodes/cc-cmds.el (c-defun-name): Handle objc selectors properly.

=== modified file 'lisp/progmodes/cc-cmds.el'
--- a/lisp/progmodes/cc-cmds.el 2012-07-20 21:18:52 +0000
+++ b/lisp/progmodes/cc-cmds.el 2012-07-21 01:41:48 +0000
@@ -1832,9 +1832,9 @@
                  (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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]