From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] org.el: make org-paragraph-fill ignore \[...\] regions starting and ending a line Date: Sun, 10 Aug 2014 01:20:48 +0200 Message-ID: <87ppg9xnan.fsf@nicolasgoaziou.fr> References: <87tx5mxfck.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGG2V-00089u-Io for emacs-orgmode@gnu.org; Sat, 09 Aug 2014 19:27:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XGG2O-0003lS-Ax for emacs-orgmode@gnu.org; Sat, 09 Aug 2014 19:27:07 -0400 Received: from slow1-d.mail.gandi.net ([217.70.178.86]:37181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGG2O-0003lN-54 for emacs-orgmode@gnu.org; Sat, 09 Aug 2014 19:27:00 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by slow1-d.mail.gandi.net (Postfix) with ESMTP id 9BF2447B2DE for ; Sun, 10 Aug 2014 01:20:06 +0200 (CEST) In-Reply-To: (Federico Beffa's message of "Sat, 9 Aug 2014 12:20:08 +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: Federico Beffa Cc: emacs-orgmode@gnu.org, Rasmus Federico Beffa writes: >> But then, you introduce a discrepancy between M-q results and Org >> syntax. This is not optimal either. > > Would you mind elaborating on the discrepancy. 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). > I do not quite understand what do you mean. Doesn't the Org syntax > "just" defines the result of parsing a buffer (like in most > programming languages where indentation and line breaks are just to > help people reading code)? Indentation and line breaks are meaningful in Org. They are not just syntactic sugar. > Yes, I agree. But, given that we do not want to make \[...\] an > `org-mode' environment for backward compatibility reasons, this > appears to be the only alternative. There is another alternative: use \begin{equation*} or \begin{displaymath}. M-q does not fill those. You're trying to solve an already solved problem, although the actual solution doesn't suit you. Regards, -- Nicolas Goaziou 0x80A93738