From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: org-refile-targets multiple conditions Date: Fri, 17 Apr 2009 11:56:39 -0700 Message-ID: <20524da70904171156u5ef9a408q5296a0c8d5c8d0d8@mail.gmail.com> References: <20524da70904161512r7c248a93q9de11b02274a62bc@mail.gmail.com> <6530CF9F-60C4-46A3-9253-D22DA15B8A9C@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LutFJ-0006pJ-RD for emacs-orgmode@gnu.org; Fri, 17 Apr 2009 14:57:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LutFE-0006ni-Qh for emacs-orgmode@gnu.org; Fri, 17 Apr 2009 14:57:04 -0400 Received: from [199.232.76.173] (port=57191 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LutFE-0006nf-K3 for emacs-orgmode@gnu.org; Fri, 17 Apr 2009 14:57:00 -0400 Received: from rv-out-0708.google.com ([209.85.198.249]:18640) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LutFE-00078z-4B for emacs-orgmode@gnu.org; Fri, 17 Apr 2009 14:57:00 -0400 Received: by rv-out-0708.google.com with SMTP id f25so1166453rvb.6 for ; Fri, 17 Apr 2009 11:56:59 -0700 (PDT) In-Reply-To: <6530CF9F-60C4-46A3-9253-D22DA15B8A9C@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org Hi Carsten, On Fri, Apr 17, 2009 at 08:58, Carsten Dominik wrote: > But you can now write a verification function and put it into the new > variable org-refile-target-verify-function. Thank you! I presume one uses org-entry get here? Also, how to verify that the entire subtree of a doneish task is not included? Is there a way to skip the subtree? Perhaps if the function returns 'skip-entire-subtree, then it can indicate that there is no need to look at the descendants? (Or, depending on one's taste, nil could skip nothing, t could skip the headline, and subtree could skip the subtree.) -- Myalgic encephalomyelitis denialism is causing death and severe suffering worse than MS. Greed is corrupting science into foul nonsense. Anybody can get the disease at any time permanently. Do science and justice matter to you? http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm