From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: M-x fill-region equivalent for lists? Date: Thu, 19 Sep 2013 15:54:24 +0100 Message-ID: <87hadgvp3z.fsf@ucl.ac.uk> References: <87a9ja4hio.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMftr-0004mj-6y for emacs-orgmode@gnu.org; Thu, 19 Sep 2013 11:12:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMftk-0004OM-N3 for emacs-orgmode@gnu.org; Thu, 19 Sep 2013 11:12:11 -0400 Received: from am1ehsobe003.messaging.microsoft.com ([213.199.154.206]:51726 helo=am1outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMftk-0004Mq-5L for emacs-orgmode@gnu.org; Thu, 19 Sep 2013 11:12:04 -0400 In-Reply-To: (John Hendy's message of "Wed, 18 Sep 2013 10:31:12 -0500") 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: John Hendy Cc: emacs-orgmode John Hendy writes: [...] > Sort of. Screenshots attached: > - as-is.png is the text from my initial email just yanked into Emacs > > - uneven-start.png is the result of `M-x fill-paragraph` on that text > > - even-start.png is the result of `M-x fill-paragraph` on the text if > I make sure the start of every line is justified with two spaces, as > it would if I'd been writing that full line directly in an Org list > item and then deleted/shortened some of the lines. > > - default.org is me taking the original yanked text and arranging it > all on one line, then pressing space at the end of the line. > > So... if the start of the lines in an item aren't even, you get an > uneven fill, Yes, this is as expected, based on fill-paragraph's algorithm for what to fill and how to define the fill prefix. > and in both cases, the right ragged edge is more ragged > than Org would have done on it's own. Yes, this is true. Happens to me as well. The filling is different when using auto-fill and writing as compared with fill-paragraph afterwards. I have never used fill-region so cannot compare. > I didn't know about this > function and have just always used fill-region (not sure why!), so > thanks for suggesting it, as it's definitely getting things close. One step at a time... ;-) Filling appears to be a somewhat stochastic process although I'm sure it isn't! Having said this, I have now moved completely to org-indent with visual-line-mode and I no longer need to fill anything, when in org mode as opposed to message mode like this email... -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.1.1-7-gaecdf5