emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Confusion about org-refile-targets-verify-function


From: Nicolas Goaziou
Subject: Re: [O] Confusion about org-refile-targets-verify-function
Date: Thu, 25 Feb 2016 14:43:35 +0100

Hello,

Florian Adamsky <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]