瀏覽代碼

Save match data when checking for table.el table

* lisp/org-latex.el (org-export-latex-special-chars): Save match data
when checking for table.el table.
Carsten Dominik 14 年之前
父節點
當前提交
b637e261c4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lisp/org-latex.el

+ 1 - 1
lisp/org-latex.el

@@ -1628,7 +1628,7 @@ See the `org-export-latex.el' code for a complete conversion table."
 	  (while (re-search-forward c nil t)
 	    ;; Put the point where to check for org-protected
 	    (unless (or (get-text-property (match-beginning 2) 'org-protected)
-			(org-at-table.el-p))
+			(save-match-data (org-at-table.el-p)))
 	      (cond ((member (match-string 2) '("\\$" "$"))
 		     (if (equal (match-string 2) "\\$")
 			 nil