From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: fill-paragraph: wrong behaviour after latex-environments Date: Sat, 05 May 2012 08:39:36 +0200 Message-ID: <87k40qsljb.fsf@altern.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQgkc-0002a2-Ji for emacs-orgmode@gnu.org; Sat, 05 May 2012 11:18:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SQgka-0000x5-Fx for emacs-orgmode@gnu.org; Sat, 05 May 2012 11:18:26 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:49443) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQgka-0000wX-7M for emacs-orgmode@gnu.org; Sat, 05 May 2012 11:18:24 -0400 Received: by wibhj13 with SMTP id hj13so1776206wib.12 for ; Sat, 05 May 2012 08:18:22 -0700 (PDT) In-Reply-To: (Benjamin Motz's message of "Thu, 03 May 2012 14:57:36 +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: Benjamin Motz Cc: n.goaziou@gmail.com, emacs-orgmode@gnu.org Hi Benjamin, Benjamin Motz writes: > invoking fill-paragraph on the following org-code will delete the > newline after \end{equation}: > > The relation > \begin{equation} > E=mc^2 > \end{equation} > won't be further discussed here. > > This behaviour is undesirable because it makes the org-text less > readable. Also, when adding '%' after \end{equation}, newline is still > being deleted by fill-paragraph (and the text after '%' won't be > exported e.g. by latex-export). There is `org-element-paragraph-separate', which already uses a better `paragraph-separate' value than the one currently in Org. Nicolas, do you think the default value for `paragraph-separate' in Org could use ̀org-element-paragraph-separate' in a way? How does org-element.el handles inline LaTeX code like the one Benjamin showed? Thanks, -- Bastien