[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!
- [O] [bug?] org-inside-latex-fragment-p broken?,
Rasmus <=
- Re: [O] [bug?] org-inside-latex-fragment-p broken?, Nicolas Goaziou, 2017/06/23
- Re: [O] [bug?] org-inside-latex-fragment-p broken?, Rasmus, 2017/06/23
- Re: [O] [bug?] org-inside-latex-fragment-p broken?, Nicolas Goaziou, 2017/06/23
- Re: [O] [bug?] org-inside-latex-fragment-p broken?, Carsten Dominik, 2017/06/23
- Re: [O] [bug?] org-inside-latex-fragment-p broken?, Nicolas Goaziou, 2017/06/23
- Re: [O] [bug?] org-inside-latex-fragment-p broken?, Rasmus, 2017/06/24
- Re: [O] [bug?] org-inside-latex-fragment-p broken?, Nicolas Goaziou, 2017/06/29