From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Confusion about org-refile-targets-verify-function Date: Thu, 25 Feb 2016 14:43:35 +0100 Message-ID: <87h9gw3ny0.fsf@nicolasgoaziou.fr> References: <87vb65gb5b.fsf@haktar.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYwAi-0004BF-Sr for emacs-orgmode@gnu.org; Thu, 25 Feb 2016 08:41:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYwAe-0002sd-Sb for emacs-orgmode@gnu.org; Thu, 25 Feb 2016 08:41:36 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:49178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYwAe-0002rZ-MU for emacs-orgmode@gnu.org; Thu, 25 Feb 2016 08:41:32 -0500 In-Reply-To: <87vb65gb5b.fsf@haktar.org> (Florian Adamsky's message of "Wed, 03 Feb 2016 14:46:52 +0100") 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: Florian Adamsky Cc: emacs-orgmode@gnu.org Hello, Florian Adamsky writes: > I'm using Emacs 24.5.1 and Org-mode 8.3.3 (15d591e) and try to filter > the output of my refile targets. For me, every headline that contains a > subtree with the name "tasks" is a project. Therefore, I would to filter > my refile targets to those which contains the name "tasks". > > I use emacs -q and have the following configuration: > > (setq org-agenda-files (list "~/test.org" )) > > (setq org-refile-targets '((org-agenda-files :maxlevel . 10))) > > (setq org-refile-use-outline-path t) > > (setq org-refile-target-verify-function (lambda () > (string= (nth 4 (org-heading-components)) "tasks"))) > > The org-mode file test.org contains the following content: > > #+title: Test Org Mode > #+STARTUP: hidestars > > * Foo > ** tasks > > * Bar > ** Test > *** Fnord > **** tasks > *** Bla > **** tasks > > * Fnord > ** Nothing > > The output from org-refile is: > - tasks (test.org) > - tasks/tasks (test.org) > > I had expected that the output will be: > - Foo/tasks > - Bar/Test/Fnord/tasks > - Bar/Test/Bla/tasks > > What am I doing wrong? Nothing. This was a bug, which is now fixed. Thank you. Regards, -- Nicolas Goaziou