From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: Refiling list items Date: Fri, 28 Jun 2013 14:09:32 -0700 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=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsfvD-0004dF-0J for emacs-orgmode@gnu.org; Fri, 28 Jun 2013 17:09:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsfvB-0007r4-Ty for emacs-orgmode@gnu.org; Fri, 28 Jun 2013 17:09:34 -0400 Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]:55821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsfvB-0007qw-Nj for emacs-orgmode@gnu.org; Fri, 28 Jun 2013 17:09:33 -0400 Received: by mail-wi0-f175.google.com with SMTP id m6so1247499wiv.14 for ; Fri, 28 Jun 2013 14:09:32 -0700 (PDT) In-Reply-To: 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: Jeff Horn Cc: Bastien , nicholas.dokos@hp.com, Org-mode ml , Nicolas Goaziou I confirm the following bug in git master. P.S. One possibility for the OP's question would be to allow a special prefix arg to select the list item and its children as a region then call refile region. On 1/17/12, Jeff Horn wrote: > 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 >> beginning of the region/subtree to refile. This will make sure >> everyone understands we are refiling headlines, not text. >> >> 2. Improve the prompt itself, explicitely saying whether we are refiling >> a subtree or a region (containing subtree(s)). >> >> 3. Add a new option `org-refile-active-region-within-subtree' which, >> when turned on, allows the user to refile the active region, turning >> 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. On 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 > | - 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 > | - List level > `---- > > As you can see, the digit at the end of the list gets orphaned. > > -- > Jeffrey Horn > http://www.failuretorefrain.com/jeff/ > > -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. ANYBODY can get it. Denmark: free Karina Hansen NOW.