[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Make archived headers unavailable as refile targets?
From: |
David Maus |
Subject: |
Re: [Orgmode] Make archived headers unavailable as refile targets? |
Date: |
Tue, 26 Jan 2010 17:10:54 +0100 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.1.91 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
Hi Paul,
At Tue, 26 Jan 2010 15:18:47 +0000,
Paul Mead wrote:
>
> 2010/1/26 Carsten Dominik <address@hidden>:
>
> >
> > Take a look at the variable `org-refile-target-verify-function'.
> >
> > HTH
> >
> > - Carsten
> >
> >
> Thanks Carsten, I've had a look at the variable and the customize
> option for it and I'm afraid I don't understand how to use it for my
> task. I'm afraid my elisp skills aren't up to much. Do I enter the
> name of a function and defun it somewhere else?
Yes, or you use the anonymous lambda declaration. Something like this:
(setq org-refile-target-verify-function
'(lambda ()
(if (member org-archive-tag (split-string (or (org-entry-get (point)
"ALLTAGS") "") ":"))
nil t)))
HTH
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... address@hidden
Email..... address@hidden
pgpniGbEYu6Gr.pgp
Description: PGP signature