From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Mead Subject: Re: Make archived headers unavailable as refile targets? Date: Tue, 26 Jan 2010 18:52:11 +0000 Message-ID: <6f9073781001261052i3145eb60pae45689d3acda53b@mail.gmail.com> References: <878wbmpj9o.fsf@gmail.com> <6f9073781001260718o4504e914ma74f32eb3ed3b07e@mail.gmail.com> <87iqaolucx.wl%maus.david@gmail.com> Reply-To: paul.d.mead@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NZqWQ-0003DD-Tk for emacs-orgmode@gnu.org; Tue, 26 Jan 2010 13:52:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NZqWL-0003D0-LR for emacs-orgmode@gnu.org; Tue, 26 Jan 2010 13:52:17 -0500 Received: from [199.232.76.173] (port=55793 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZqWL-0003Cx-J3 for emacs-orgmode@gnu.org; Tue, 26 Jan 2010 13:52:13 -0500 Received: from mail-fx0-f216.google.com ([209.85.220.216]:41559) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NZqWL-0005jW-2h for emacs-orgmode@gnu.org; Tue, 26 Jan 2010 13:52:13 -0500 Received: by fxm8 with SMTP id 8so4059330fxm.26 for ; Tue, 26 Jan 2010 10:52:12 -0800 (PST) In-Reply-To: <87iqaolucx.wl%maus.david@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: David Maus Cc: emacs-orgmode@gnu.org 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 : > Hi Paul, > > At Tue, 26 Jan 2010 15:18:47 +0000, > Paul Mead wrote: >> >> 2010/1/26 Carsten Dominik : >> >> > >> > 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 > =A0 =A0 =A0'(lambda () > =A0 =A0 =A0 =A0 (if (member org-archive-tag (split-string (or (org-entry-= get (point) "ALLTAGS") "") ":")) > =A0 =A0 =A0 =A0 =A0 =A0 nil t))) > HTH > > =A0-- David > > -- > OpenPGP... 0x99ADB83B5A4478E6 > Jabber.... dmjena@jabber.org > Email..... maus.david@gmail.com >