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:
parent
796a78222a
commit
ad8e508e93
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue