org-element: Fix d003d56eaf5ffb8c2106ef69cbbc6bbee57b7e00
authorNicolas Goaziou <n.goaziou@gmail.com>
Sun, 8 Sep 2013 21:50:53 +0000 (8 23:50 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sun, 8 Sep 2013 21:50:53 +0000 (8 23:50 +0200)
* lisp/org-element.el (org-element-paragraph-parser): Use
  `org-match-string-no-properties'.

lisp/org-element.el

index b1b8f2f..564a434 100644 (file)
@@ -2177,7 +2177,7 @@ Assume point is at the beginning of the paragraph."
                                (re-search-forward
                                 (format "^[ \t]*#\\+END_%s[ \t]*$"
                                         (regexp-quote
-                                         (match-string-no-properties 1)))
+                                         (org-match-string-no-properties 1)))
                                 limit t)))
                         ;; Stop at valid latex environments.
                         (and (looking-at
@@ -2186,7 +2186,7 @@ Assume point is at the beginning of the paragraph."
                                (re-search-forward
                                 (format "^[ \t]*\\\\end{%s}[ \t]*$"
                                         (regexp-quote
-                                         (match-string-no-properties 1)))
+                                         (org-match-string-no-properties 1)))
                                 limit t)))
                         ;; Stop at valid keywords.
                         (looking-at "[ \t]*#\\+\\S-+:")