summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus <rasmus@gmx.us>2017-07-03 11:57:05 +0200
committerRasmus <rasmus@gmx.us>2017-07-03 12:05:36 +0200
commitad8e508e9375160b8a6b37c4701c4f8a1dcff430 (patch)
treef1d849e2510f4d732588987402be69db88be8217
parent796a78222adf85b96267c29d329acd250935d09f (diff)
downloadorg-mode-ad8e508e9375160b8a6b37c4701c4f8a1dcff430.tar.gz
Fix bug in org-inside-LaTeX-fragment-p
* lisp/org.el (org-inside-LaTeX-fragment-p): Also work correctly in first paragraph.
-rw-r--r--lisp/org.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 916f54b..567cf64 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -19027,9 +19027,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