From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Re: Make archived headers unavailable as refile targets? Date: Tue, 26 Jan 2010 17:55:50 +0100 Message-ID: References: <878wbmpj9o.fsf@gmail.com> <6f9073781001260718o4504e914ma74f32eb3ed3b07e@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NZoiJ-00063g-6U for emacs-orgmode@gnu.org; Tue, 26 Jan 2010 11:56:27 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NZoiE-0005y4-BB for emacs-orgmode@gnu.org; Tue, 26 Jan 2010 11:56:26 -0500 Received: from [199.232.76.173] (port=33028 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZoiE-0005xb-4s for emacs-orgmode@gnu.org; Tue, 26 Jan 2010 11:56:22 -0500 Received: from mx20.gnu.org ([199.232.41.8]:3088) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NZoiD-0006LI-6M for emacs-orgmode@gnu.org; Tue, 26 Jan 2010 11:56:21 -0500 Received: from lo.gmane.org ([80.91.229.12]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NZoiC-0002aN-55 for emacs-orgmode@gnu.org; Tue, 26 Jan 2010 11:56:20 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NZoi8-0007Wb-Jx for emacs-orgmode@gnu.org; Tue, 26 Jan 2010 17:56:16 +0100 Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Jan 2010 17:56:16 +0100 Received: from rileyrgdev by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Jan 2010 17:56:16 +0100 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: emacs-orgmode@gnu.org Richard Riley writes: > There might be easier ways, but as I'm familiarising myself more with > elisp, here's one solution: > Having seen David's solution, I realised the org-archive-tag in your case is better rather than the more "general" solution I aimed for. So maintaining the general org-contains-tag solution but using the correct tag variable: ,---- | (defun org-not-archived () (not (org-contains-tag org-archive-tag))) `---- r.