浏览代码

Merge branch 'maint'

Rasmus 7 年之前
父节点
当前提交
2e02581cbf
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      lisp/org.el

+ 1 - 3
lisp/org.el

@@ -18794,9 +18794,7 @@ looks only before point, not after."
   (catch 'exit
     (let ((pos (point))
 	  (dodollar (member "$" (plist-get org-format-latex-options :matchers)))
-	  (lim (progn
-		 (re-search-backward (concat "^\\(" paragraph-start "\\)") nil t)
-		 (point)))
+	  (lim (save-excursion (org-backward-paragraph) (point)))
 	  dd-on str (start 0) m re)
       (goto-char pos)
       (when dodollar