From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Testing presence of a property Date: Thu, 30 Jul 2009 16:56:15 -0400 Message-ID: <20651.1248987375@alphaville.usa.hp.com> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWchE-0004Kt-O4 for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 16:57:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWchA-0004K0-0H for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 16:57:52 -0400 Received: from [199.232.76.173] (port=54739 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWch9-0004Jv-RH for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 16:57:47 -0400 Received: from g1t0026.austin.hp.com ([15.216.28.33]:47719) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MWch9-0006js-3A for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 16:57:47 -0400 In-Reply-To: Message from User of "Thu, 30 Jul 2009 19:57:55 -0000." 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: User Cc: emacs-orgmode@gnu.org User wrote: > Is there a way to search for headlines which does *not* have set > a particular property? Reading the manual I have the impression > property search has the fixed syntax name=value, so there is no > simple way to search for headers where a property is not yet set > (that is, it has no value). > > The only way I found is testing for all possible values, but it's > a bit clumsy (prop<>"value1"+prop<>"value2"+prop<>"value3"...). > > Is there a simpler way? > > I don't use properties, but doesn't prop="" work? I added the following file to my agenda list: ,---- | | * head | :PROPERTIES: | :PROP: foo | :END: | | * tail | :PROPERTIES: | :PROP: bar | :END: `---- and I did C-c a m PROP="" Since none of my normal headlines has the PROP property, I got a buffer with all the headlines except the above two. Conversely, C-c a m PROP<>"" found only those two. HTH, Nick