From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [BUG]? \\ and `fill-paragraph' Date: Mon, 30 Jan 2012 23:18:49 +0100 Message-ID: <87ehugu94m.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rrzau-0004mu-0S for emacs-orgmode@gnu.org; Mon, 30 Jan 2012 17:21:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rrzas-0005oH-T7 for emacs-orgmode@gnu.org; Mon, 30 Jan 2012 17:20:59 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:50472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rrzas-0005o9-MU for emacs-orgmode@gnu.org; Mon, 30 Jan 2012 17:20:58 -0500 Received: by wera13 with SMTP id a13so4458237wer.0 for ; Mon, 30 Jan 2012 14:20:57 -0800 (PST) In-Reply-To: (Yu's message of "Mon, 30 Jan 2012 16:50:49 +0100") 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: Yu Cc: org-mode mailing list Hello, Yu writes: > When using "\\" to force linebreaks, these potentially get lost when > reformatting the paragraph with Alt+Q (fill paragraph). > > Given an input > > : - long sentence long sentence > : long sentence long sentence > : long sentence long sentence > : long sentence: \\ > : Next line. > > pressing Alt+Q (`fill-paragraph') I'd expect to get > > : - long sentence long sentence long sentence long sentence long > : sentence long sentence long sentence: \\ > : Next line. > > but what I get is > > : - long sentence long sentence long sentence long sentence long > : sentence long sentence long sentence: \\ Next line. Yes, this is a problem. I'll take a look at it in a few days. I wanted to provide a better filling mechanism backed up with Org elements, anyway. > The Problem occurs in the opposite direction too: If a "\\" is m e a > n t to occur literally it can end up at the end of a line and thus be > interpreted as a line break. I've committed a patch that should prevent auto-fill from creating Org line breaks. Regards, -- Nicolas Goaziou