From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: comments after paragraph remove newline Date: Fri, 22 Feb 2013 11:50:48 +0100 Message-ID: <878v6glj07.fsf@gmail.com> References: <87y5ewdkk1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8qDY-00018f-Uq for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 05:51:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8qDX-00078l-78 for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 05:51:04 -0500 Received: from mail-wg0-f44.google.com ([74.125.82.44]:41016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8qDX-00078U-0v for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 05:51:03 -0500 Received: by mail-wg0-f44.google.com with SMTP id dr12so393302wgb.11 for ; Fri, 22 Feb 2013 02:51:02 -0800 (PST) In-Reply-To: (Samuel Wales's message of "Mon, 18 Feb 2013 12:51:05 -0700") 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: Samuel Wales Cc: emacs-orgmode@gnu.org Samuel Wales writes: > On 2/10/13, Nicolas Goaziou wrote: >> Blank lines below an element belong to that element, by definition. So, >> obviously, just add a blank line between "comments" and "# test" and it >> will not be removed. > > You are saying that the comments get removed with the blank line > because the blank line is considered part of the comments? Is silence following music still music? ;) Blank lines belong to the "comments" element, but are not commented themselves. > In my case, the proposed solution changes the meaning of the comment. > For example: > > === > a > b > c > d > # e > # f > > new paragraph > === > > If you make e and f a new paragraph, it is intended to be a new > paragraph and no longer refers to the previous paragraph. > > I don't know the code, but is it possible that, instead of attaching > blank lines to elements, blank lines can be an element on their own? It's not a matter of "where to store it", but "what to do with it". > Would that allow the needed flexibility and also add orthogonality for > other purposes? I don't think we need it. I have pushed a patch for that. Note that now, blank lines before the comment and after it will accumulate. Regards, -- Nicolas Goaziou