0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-30 02:20:01 +00:00

Fix bug in org-inside-LaTeX-fragment-p

* lisp/org.el (org-inside-LaTeX-fragment-p): Also work correctly in
  first paragraph.
This commit is contained in:
Rasmus 2017-07-03 11:57:05 +02:00
parent 796a78222a
commit ad8e508e93

View file

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