From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Horn Subject: Re: Refiling list items Date: Wed, 10 Aug 2011 11:16:36 -0400 Message-ID: References: <8762m8ns2e.fsf@gmail.com> <87d3gfmrpy.fsf@gmail.com> <13875.1312849225@alphaville.americas.hpqcorp.net> <87aabhlgy8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59384) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrAWh-0000OI-Bv for emacs-orgmode@gnu.org; Wed, 10 Aug 2011 11:17:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QrAWf-0006s9-Gu for emacs-orgmode@gnu.org; Wed, 10 Aug 2011 11:16:59 -0400 Received: from mail-vx0-f169.google.com ([209.85.220.169]:48196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrAWf-0006s2-CX for emacs-orgmode@gnu.org; Wed, 10 Aug 2011 11:16:57 -0400 Received: by vxj15 with SMTP id 15so1146721vxj.0 for ; Wed, 10 Aug 2011 08:16:56 -0700 (PDT) In-Reply-To: <87aabhlgy8.fsf@gmail.com> 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: Nicolas Goaziou Cc: nicholas.dokos@hp.com, Org-mode ml On Wed, Aug 10, 2011 at 06:05, Nicolas Goaziou wrote: > From my point of view, lists cannot be a subset of headlines. Indeed, > headlines are global structural elements, whereas items are local > structural elements. In other words, moving an item outside of its > scope, which is the list it belongs, will remove any structural meaning > it has. I don't disagree. > For example, what is the point of moving an un-ordered item into an > ordered list, or, worse, an un-ordered item into a description list? > Sure, the item being moved and the destination list may share the same > structure, but it's only a part of the equation. I frequently use description lists as a quick way to get something like "bold inline headers" for lists of test answers and questions. Often, extended answers will be a description list item of several paragraphs, or several paragraphs with sublists thrown in. The latter doesn't work well. I agree I should probably figure out a better way to organize this information, but it just feels natural at the time and doesn't seem worth the trouble to fix after the fact. > My point is that outside of its list, an item is just plain text. > > Thus, why not take that into account? Instead of creating a magical > function to refile items anywhere, let's just extend `org-refile' to > work on a region of text which is not a sub-tree. > > At the moment, org-refile understands the concept of region, but checks > if that region holds a sub-tree. What about removing that check, and > adapt the code to text without trees? It will then be the user's problem > if he wants to match apples and oranges. Furthermore, as a side effect, > refiling an item would simply mean selecting it and using refile > interface. Brilliant! -- Jeffrey Horn http://www.failuretorefrain.com/jeff/