From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Filling does not work correctly in lists [9.0.5 (9.0.5-elpa @ /home/oskar/.emacs.d/elpa/org-20170210/)] Date: Mon, 22 May 2017 15:05:16 +0200 Message-ID: <87h90df3eb.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCn1V-0005eq-Ud for emacs-orgmode@gnu.org; Mon, 22 May 2017 09:05:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dCn1V-0001q7-81 for emacs-orgmode@gnu.org; Mon, 22 May 2017 09:05:21 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:39144) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dCn1V-0001pQ-2u for emacs-orgmode@gnu.org; Mon, 22 May 2017 09:05:21 -0400 In-Reply-To: (Oskar Kvist's message of "Thu, 18 May 2017 05:55:17 +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" To: Oskar Kvist Cc: emacs-orgmode@gnu.org Hello, Oskar Kvist writes: > I have a buffer with the 3 lines below. Notice that the long lines > contains no newlines. I selected (with the mark) the whole last line, > the one starting with "2.", and ran `fill-region`. It worked, and the > line was filled. Then I tried to do the same with the line starting with > "1.", but when I selected it and ran fill-region, nothing happened, and > it remained one long line. > > If I try to fill the line starting with "1." first, before filling "2.", > it works. And after "1." I can fill "2.". > > If I remove the "1." and "2." and just have two long lines instead of a > list, they can be filled in any order. > > The buffer text: > > * Test > 1. long line long line long line long line long line long line long line > long line long line long line long line long line long line long line long > line long line long line long line long line long line > 2. long line long line long line long line long line long line long line > long line long line long line long line long line long line long line long > line long line long line long line long line long line Org fill paragraph function did not handle region at all and delegated the job to `fill-region'. This is no longer the case in development branch. Hopefully, this should solve your issue. Thank you for the report. Regards, -- Nicolas Goaziou