[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: |
Paul Mead |
Subject: |
Re: [Orgmode] Make archived headers unavailable as refile targets? |
Date: |
Tue, 26 Jan 2010 18:52:11 +0000 |
Thanks David, I'm going to have to check out the elisp reference and
try to understand what you did there!
Paul
2010/1/26 David Maus <address@hidden>:
> 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
>