[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [bug?] org-inside-latex-fragment-p broken?
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [bug?] org-inside-latex-fragment-p broken? |
Date: |
Fri, 23 Jun 2017 13:55:37 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Hello,
Rasmus <address@hidden> writes:
> 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?
`backward-paragraph' may be a bit heavy.
Anyway we shouldn't use this function at all. Why do you need it?
Regards,
--
Nicolas Goaziou
- [O] [bug?] org-inside-latex-fragment-p broken?, Rasmus, 2017/06/23
- Re: [O] [bug?] org-inside-latex-fragment-p broken?,
Nicolas Goaziou <=
- 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