From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Horn Subject: Re: Refiling list items Date: Tue, 17 Jan 2012 23:56:18 -0500 Message-ID: References: <8762m8ns2e.fsf@gmail.com> <87d3gfmrpy.fsf@gmail.com> <13875.1312849225@alphaville.americas.hpqcorp.net> <87aabhlgy8.fsf@gmail.com> <87ty9gfknw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnNZi-0003RM-Bt for emacs-orgmode@gnu.org; Tue, 17 Jan 2012 23:56:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RnNZg-0000py-MM for emacs-orgmode@gnu.org; Tue, 17 Jan 2012 23:56:42 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:33303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnNZg-0000pf-Gw for emacs-orgmode@gnu.org; Tue, 17 Jan 2012 23:56:40 -0500 Received: by iadj38 with SMTP id j38so4634770iad.0 for ; Tue, 17 Jan 2012 20:56:39 -0800 (PST) In-Reply-To: <87ty9gfknw.fsf@gnu.org> 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: Bastien Cc: Org-mode ml , nicholas.dokos@hp.com, Nicolas Goaziou On Wed, Aug 17, 2011 at 05:32, Bastien wrote: > I pushed three small changes to the org-refile interface: > > 1. before prompting the user for a refile target, put the point at the > =A0 beginning of the region/subtree to refile. =A0This will make sure > =A0 everyone understands we are refiling headlines, not text. > > 2. Improve the prompt itself, explicitely saying whether we are refiling > =A0 a subtree or a region (containing subtree(s)). > > 3. Add a new option `org-refile-active-region-within-subtree' which, > =A0 when turned on, allows the user to refile the active region, turning > =A0 the first line into a headline using `org-toggle-heading'. > > I think these are improvements going in the right direction -- let me > know what you think. =A0On the overall, I'm with Nicolas in thinking that > we need to be extra careful when we try to extend a functionality to > heterogeneous elements. I've just come across an instance when this functionality was useful again. I like the solution you've implemented, Bastien. There's just a small problem I see right now, which pops up in particular with the example outline from my OP. ,----[ Sample Outline ] | * Headline 1 | - List level 1 | =A0 - List level 2 | * Headline 2 | Some text. `---- Selecting the region with the second line and third line, inclusive (the plain list under Heading 1), refiling with `org-refile-active-region-within-subtree' toggled on produces the following outline: ,----[ Results ] | * Headline 1 | 2 | * Headline 2 | Some text. | ** List level 1 | =A0 - List level `---- As you can see, the digit at the end of the list gets orphaned. --=20 Jeffrey Horn http://www.failuretorefrain.com/jeff/