From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: M-x fill-region equivalent for lists? Date: Wed, 18 Sep 2013 10:32:48 -0500 Message-ID: References: <87a9ja4hio.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMJkI-0002cB-Ta for emacs-orgmode@gnu.org; Wed, 18 Sep 2013 11:32:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMJkH-0005R4-8V for emacs-orgmode@gnu.org; Wed, 18 Sep 2013 11:32:50 -0400 Received: from mail-ob0-x22a.google.com ([2607:f8b0:4003:c01::22a]:33177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMJkH-0005Qw-3s for emacs-orgmode@gnu.org; Wed, 18 Sep 2013 11:32:49 -0400 Received: by mail-ob0-f170.google.com with SMTP id va2so7771632obc.15 for ; Wed, 18 Sep 2013 08:32:48 -0700 (PDT) In-Reply-To: <87a9ja4hio.fsf@ucl.ac.uk> 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 , emacs-orgmode , Eric Fraga P.S. Oddly, reply-all to your email composes an email to myself and the Org-mode list, but not you directly... what might be the cause of that? This is the behavior I get with gmail. Just wanted to let you know. John On Wed, Sep 18, 2013 at 4:15 AM, Eric S Fraga wrote: > John Hendy writes: > >> Greetings, >> >> >> When editing lists after deleting words (shortening lines) and/or >> concatenating one line with the one that follows (to remedy a >> shortened line), I end up with an "unfilled" list item. Is there an >> Org equivalent to `M-x fill-region` on paragraphs to tidy up the Org >> document list entries? > > Doesn't fill-paragraph work? It does for me. > > Well, to be precise, I have M-q bound to maybe-fill-paragraph which is > defined as > > #+begin_src emacs-lisp > (defun maybe-fill-paragraph (&optional justify region) > "Fill paragraph at or after point (see `fill-paragraph'). > > Does nothing if `visual-line-mode' is on." > (interactive (progn > (barf-if-buffer-read-only) > (list (if current-prefix-arg 'full) t))) > (or visual-line-mode > (fill-paragraph justify region))) > #+end_src > > HTH, > eric > -- > : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.1.1-7-gaecdf5 >