From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [bug?] org-inside-latex-fragment-p broken? Date: Fri, 23 Jun 2017 12:43:44 -0400 Message-ID: References: <87o9tfngo3.fsf@pank.eu> <87shiq6hqe.fsf@nicolasgoaziou.fr> <87k242oovk.fsf@gmx.us> <87lgoi6cn1.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c09714033d2d50552a34f1b" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dORgm-0005gP-Nr for emacs-orgmode@gnu.org; Fri, 23 Jun 2017 12:44:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dORgl-0000vt-QC for emacs-orgmode@gnu.org; Fri, 23 Jun 2017 12:44:08 -0400 Received: from mail-it0-x230.google.com ([2607:f8b0:4001:c0b::230]:38321) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dORgl-0000tS-LQ for emacs-orgmode@gnu.org; Fri, 23 Jun 2017 12:44:07 -0400 Received: by mail-it0-x230.google.com with SMTP id b205so11127956itg.1 for ; Fri, 23 Jun 2017 09:44:06 -0700 (PDT) In-Reply-To: <87lgoi6cn1.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: org-mode list , Rasmus --94eb2c09714033d2d50552a34f1b Content-Type: text/plain; charset="UTF-8" On Fri, Jun 23, 2017 at 9:45 AM, Nicolas Goaziou wrote: > Rasmus writes: > > > Nicolas Goaziou writes: > > > >> `backward-paragraph' may be a bit heavy. > >> > >> Anyway we shouldn't use this function at all. Why do you need it? > > > > It's used by a couple of org-cdlatex-* functions, > > e.g. org-cdlatex-math-modify. > > Then these calls should be replaced with `org-element-context', unless > the callers may be used in partially written LaTeX snippets. > Yes, these can be used in partially written fragments. Carsten --94eb2c09714033d2d50552a34f1b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Fri, Jun 23, 2017 at 9:45 AM, Nicolas Goaziou <= mail@nicolasgoa= ziou.fr> wrote:
Rasmus <rasmus@gmx.us> wri= tes:

> Nicolas Goaziou <mail@nic= olasgoaziou.fr> writes:
>
>> `backward-paragraph' may be a bit heavy.
>>
>> Anyway we shouldn't use this function at all. Why do you need = it?
>
> It's used by a couple of org-cdlatex-* functions,
> e.g. org-cdlatex-math-modify.

Then these calls should be replaced with `org-element-context', = unless
the callers may be used in partially written LaTeX snippets.

Yes, these can be used in partially written fragments= .

Carsten
--94eb2c09714033d2d50552a34f1b--