From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2MsQDzaWy14vMgAA0tVLHw (envelope-from ) for ; Mon, 25 May 2020 09:56:06 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id uD/fCjaWy150TgAA1q6Kng (envelope-from ) for ; Mon, 25 May 2020 09:56:06 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C670A94029E for ; Mon, 25 May 2020 09:56:05 +0000 (UTC) Received: from localhost ([::1]:55934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jd9q0-0004O5-Pq for larch@yhetil.org; Mon, 25 May 2020 05:56:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jd9pe-0004Nu-Jc for emacs-orgmode@gnu.org; Mon, 25 May 2020 05:55:42 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:43362) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jd9pd-0001g9-O7; Mon, 25 May 2020 05:55:42 -0400 Received: by mail-pl1-x62b.google.com with SMTP id k22so7318018pls.10; Mon, 25 May 2020 02:55:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:message-id :date:mime-version; bh=4lOvG/MzSgmvFwPiAMdSaMZ4D2Naym9LwlygA/OtxoY=; b=nHunU+8BRYrTuoc/iYimS0EUNf/7+mw6n3c2O1RtmKZbr98LsRP+ibwmheJbVGGrkz Y7+dW9qB1aMeS5wqc/XKOmyt/LSnj7n/aigk+NXkZLkjDtH9YnWO+x+YD2K6k34fU53f bGZLhpI+4gndQsRw+VOMAjt2xvLXC1K5rwVuUjdsOIsECAUNT9085PA94uY0V/y7AOxE qaqol+Hg1gpvadqeF2DMpTsZjmQz9iRmOceDniD+jhZtiavJRB3AlfArNiE2WgbN7eJr 0LL2FvF+j2WTT3CTsGhKyOSAVTwUfFLWLswCHNiWKVfVFX8TXe46goJJm1NuowVVBh/y hD2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version; bh=4lOvG/MzSgmvFwPiAMdSaMZ4D2Naym9LwlygA/OtxoY=; b=sF4CvkhB+/sL76D1RrcOtDl2czQF82Ds4mTuK40LS2/eTkY/c8NfwxKibNcUljfYAM qxqwyw2fAxt3TgMl54U7YaR92MIAKxoF5/bvUGpsCy1GPHe0ZHH/0lObnpTR1qG0lNaV thadIKkMi7HMWbrP/A/SRVirbDe7hXjztSwut/AY1fGVGhmW4uU3TDKJLLTWTQl6Q3OU ose8Qno6MLIWM5aZ7fYoQGTlS2k77bM/V+0bSZoxRXPKtROAiLFKkIvCWiNkJjQ3dWwW 6yleopz5Umut+ccjEydv0VnSjCxJglGbJ46cxA9S4E1BXsqu3uJQMrsAMTMQ0bLyLKnD pEwg== X-Gm-Message-State: AOAM532uCL0jh+vMPAYoHmJUunCh3rf4zSmXm7Kk4uBlNJNGnUtkMS+7 zBKGv0HwjgHB5zwHmJWAcio= X-Google-Smtp-Source: ABdhPJzCAbKNmpEyF8LXEOjtTJvuamfCgNd7Z0/huIbbHxIgnF9eDlfrlLw7UZOIfJcY8fkAAnVWkQ== X-Received: by 2002:a17:90a:d317:: with SMTP id p23mr20257704pju.107.1590400540002; Mon, 25 May 2020 02:55:40 -0700 (PDT) Received: from localhost (180-150-91-8.b4965b.per.nbn.aussiebb.net. [180.150.91.8]) by smtp.gmail.com with ESMTPSA id b14sm10873090pgb.32.2020.05.25.02.55.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 May 2020 02:55:39 -0700 (PDT) References: <87zh9xxrww.fsf@gmail.com> <4274FCF8-5304-4B55-9586-0C718DA388D3@getmailspring.com> <87r1v9ceml.fsf@nicolasgoaziou.fr> <871rn8gy40.fsf@gmail.com> <87ftbobbct.fsf@nicolasgoaziou.fr> <87zh9wfish.fsf@gmail.com> User-agent: mu4e 1.4.6; emacs 26.3 From: TEC To: Nicolas Goaziou Subject: Re: (Feature Request) have org-edit-special work inside non-environment LaTeX blocks, i.e. \( \) and \[ \] In-reply-to: <87zh9wfish.fsf@gmail.com> Message-ID: <87y2pgfieh.fsf@gmail.com> Date: Mon, 25 May 2020 17:55:35 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=tecosaur@gmail.com; helo=mail-pl1-x62b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bastien , "emacs-orgmode@gnu.org" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=nHunU+8B; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: CDE6Osm4MvGu --=-=-= Content-Type: text/plain; format=flowed One other quick comment Nicolas Goaziou writes: > LaTeX fragments should not break paragraphs, or tables. So you > need to > prevent inserting blank lines, or even newlines characters in > the case > of tables. I don't think we need to worry about newlines, particularly as this only applies to elements which are not defined by a \begin{env} \end{env} block, ruling tables out :P Another query from me, with something like a blank line, why is a user-error raised? Surely just strip blank lines from the buffer? I can't think of any situation where this would be undesirable. --=-=-= Content-Type: multipart/related; boundary="==-=-=" --==-=-= Content-Type: text/html

One other quick comment

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> LaTeX fragments should not break paragraphs, or tables. So you need to
> prevent inserting blank lines, or even newlines characters in the case
> of tables.

I don’t think we need to worry about newlines, particularly as this only applies
to elements which are not defined by a \begin{env} \end{env} block, ruling
tables out :P

Another query from me, with something like a blank line, why is a user-error
raised? Surely just strip blank lines from the buffer? I can’t think of any
situation where this would be undesirable.

--==-=-=-- --=-=-=--