emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [bug?] org-inside-latex-fragment-p broken?


From: Rasmus
Subject: [O] [bug?] org-inside-latex-fragment-p broken?
Date: Fri, 23 Jun 2017 12:26:36 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Hi,

org-inside-LaTeX-fragment-p seems to assume that a latex-fragment only
exists beyond the first paragraph.  It does fails to predict the fragment
in this simple file

#+begin_src org
foo $x$ bar
test `org-inside-LaTeX-fragment-p' on the "$x$" above.
#+end_src

It seems to be fixed if we replace,

    (lim (progn
                 (re-search-backward (concat "^\\(" paragraph-start "\\)") nil 
t)
                 (point)))

With

    (lim (save-excursion (backward-paragraph) (point)))

Should I push this?

Thanks,
Rasmus

-- 
You people at the NSA are becoming my new best friends!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]