From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Florian Adamsky <fa-orgmode@haktar.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Confusion about org-refile-targets-verify-function
Date: Thu, 25 Feb 2016 14:43:35 +0100 [thread overview]
Message-ID: <87h9gw3ny0.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87vb65gb5b.fsf@haktar.org> (Florian Adamsky's message of "Wed, 03 Feb 2016 14:46:52 +0100")
Hello,
Florian Adamsky <fa-orgmode@haktar.org> 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
next prev parent reply other threads:[~2016-02-25 13:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-03 13:46 Confusion about org-refile-targets-verify-function Florian Adamsky
2016-02-25 13:43 ` Nicolas Goaziou [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-02-03 11:06 Florian Adamsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h9gw3ny0.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=fa-orgmode@haktar.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).