diff options
author | Rasmus <rasmus@gmx.us> | 2017-07-03 11:57:05 +0200 |
---|---|---|
committer | Rasmus <rasmus@gmx.us> | 2017-07-03 12:05:36 +0200 |
commit | ad8e508e9375160b8a6b37c4701c4f8a1dcff430 (patch) | |
tree | f1d849e2510f4d732588987402be69db88be8217 | |
parent | 796a78222adf85b96267c29d329acd250935d09f (diff) | |
download | org-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.el | 4 |
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 |