From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: Make archived headers unavailable as refile targets? Date: Tue, 26 Jan 2010 17:10:54 +0100 Message-ID: <87iqaolucx.wl%maus.david@gmail.com> References: <878wbmpj9o.fsf@gmail.com> <6f9073781001260718o4504e914ma74f32eb3ed3b07e@mail.gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============2072460592==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NZo0R-0002Ka-HD for emacs-orgmode@gnu.org; Tue, 26 Jan 2010 11:11:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NZo0Q-0002Jc-Nz for emacs-orgmode@gnu.org; Tue, 26 Jan 2010 11:11:07 -0500 Received: from [199.232.76.173] (port=57407 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZo0Q-0002JO-GV for emacs-orgmode@gnu.org; Tue, 26 Jan 2010 11:11:06 -0500 Received: from fg-out-1718.google.com ([72.14.220.154]:55626) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NZo0P-0003Qa-Ng for emacs-orgmode@gnu.org; Tue, 26 Jan 2010 11:11:06 -0500 Received: by fg-out-1718.google.com with SMTP id e21so271548fga.12 for ; Tue, 26 Jan 2010 08:11:04 -0800 (PST) In-Reply-To: <6f9073781001260718o4504e914ma74f32eb3ed3b07e@mail.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: paul.d.mead@gmail.com, Paul Mead Cc: emacs-orgmode@gnu.org, Carsten Dominik --===============2072460592== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Tue_Jan_26_17:10:49_2010-1"; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Tue_Jan_26_17:10:49_2010-1 Content-Type: text/plain; charset=US-ASCII 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 '(lambda () (if (member org-archive-tag (split-string (or (org-entry-get (point) "ALLTAGS") "") ":")) nil t))) HTH -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... maus.david@gmail.com --pgp-sign-Multipart_Tue_Jan_26_17:10:49_2010-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAktfFA0ACgkQma24O1pEeOZb6QD/RGw0SfW3MGHntGuioZoLXDa7 eCR7qHkt3IJ7fK+ihZUBAJHqD86+H2ch7Dgq8XbM4v2mGomcLMrliW6aqCcDb9OC =bCH6 -----END PGP SIGNATURE----- --pgp-sign-Multipart_Tue_Jan_26_17:10:49_2010-1-- --===============2072460592== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============2072460592==--