From: Nick Dokos <nicholas.dokos@hp.com>
To: User <spamfilteraccount@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Testing presence of a property
Date: Thu, 30 Jul 2009 16:56:15 -0400 [thread overview]
Message-ID: <20651.1248987375@alphaville.usa.hp.com> (raw)
In-Reply-To: Message from User <spamfilteraccount@gmail.com> of "Thu, 30 Jul 2009 19:57:55 -0000." <loom.20090730T194544-849@post.gmane.org>
User <spamfilteraccount@gmail.com> 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="" <RET>
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<>"" <RET>
found only those two.
HTH,
Nick
next prev parent reply other threads:[~2009-07-30 20:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-30 19:57 Testing presence of a property User
2009-07-30 20:56 ` Nick Dokos [this message]
2009-07-30 21:06 ` User
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20651.1248987375@alphaville.usa.hp.com \
--to=nicholas.dokos@hp.com \
--cc=emacs-orgmode@gnu.org \
--cc=spamfilteraccount@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).