From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [PATCH] org.el: make org-paragraph-fill ignore \[...\] regions starting and ending a line Date: Mon, 11 Aug 2014 21:43:59 +0200 Message-ID: <874mxiizgg.fsf@gmx.us> References: <87mwbbp45b.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGvVn-0001Oo-GW for emacs-orgmode@gnu.org; Mon, 11 Aug 2014 15:44:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XGvVi-0000ed-8j for emacs-orgmode@gnu.org; Mon, 11 Aug 2014 15:44:07 -0400 Received: from mout.gmx.net ([212.227.17.20]:60600) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGvVh-0000eR-Vb for emacs-orgmode@gnu.org; Mon, 11 Aug 2014 15:44:02 -0400 In-Reply-To: (Federico Beffa's message of "Mon, 11 Aug 2014 20:27:12 +0200") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: beffa@ieee.org Cc: emacs-orgmode@gnu.org, mail@nicolasgoaziou.fr Federico Beffa writes: > On Mon, Aug 11, 2014 at 3:06 PM, Nicolas Goaziou = wrote: >> Federico Beffa writes: >> > >>> to help me understand what kind of problems one could face with HTML (or >>> another back-end), could you give a concrete example? >> >> line 1 >> line 2 >> \[1+1\] >> >> =3D=3D> >> >>

>> line 1 >> line 2 >> >>

>> >> whereas >> >> line 1 >> line 2 >> \begin{equation*} >> 1+1 >> \end{equation*} >> >> =3D=3D> >> >>

>> line 1 >> line 2 >>

>> >>

>> >>

>> >> IOW, there are two different structures in the document: >> >> ((paragraph latex)) >> >> vs >> >> ((paragraph) (latex)) >> >> even though M-q cannot tell that difference (with your proposal, the >> behaviour would be the same in both cases). > > The example highlight the difference that I suggested to remove in the > very first place (by making \[...\] an environment). This was rejected > to preserve backward compatibility and that's fine. So I moved on to a > second proposal: modify the paragraph filling function. > > Didn't the following comment in your previous reply refer to the > second proposal? > >> Ignoring \[...\] when filling the paragraph is misleading. You may >> believe the object doesn't belong to the paragraph at all. I think M-q >> should, on the contrary, give clues about the structure of the document. >> >> Also, it doesn't make a difference when exporting to LaTeX, but it might >> in back-ends with a different definition for paragraphs (e.g. HTML). > > From your sentence in your last reply: > "... even though M-q cannot tell that difference (with your proposal, > the behaviour would be the same in both cases)." > I understand that there is no technical deficiency in it. Am I > therefore correct in saying that if you prefer not to include this > proposal in org-mode it isn't for technical reasons but it is a matter > of opinion/taste? > > I would like to know, because in any case I would like to use the > proposed filling function in my copy of org-mode and if you see > technical problems/errors I very much would like to be aware of them > and, if possible, avoid/correct them. How about adding the possibility to add hooks to org-fill-paragraph? So that people can add "extensions" to fill as they want and the core function can rely on org-element only? =E2=80=94Rasmus --=20 Lasciate ogni speranza, voi che leggete questo.