emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Checking for tags efficiently
Date: Tue, 12 May 2009 15:36:39 -0700	[thread overview]
Message-ID: <20524da70905121536p5b0ba15teae5b37afa007dd6@mail.gmail.com> (raw)

Using org-map-entries, I check for expired done tasks and
then archive them.  I would like to skip archiving any
subtree that has the tags[1] :data: or :repurpose:.[2]

Is there a function for checking for the presence of tags
efficiently (order 1) and robustly?  Is org-entry-properties
the right thing to use?

I'm trying to avoid future debugging.

Thanks!

[1] Immediate or inherited.  I recall seeing in the code
somewhere a reference to a way to speed up the latter.

[2] In case you are curious, my plan is to use these
tags to indicate that while the tasks are done, they have
data that should be refiled or they have content that should
be repurposed.  The advantage of this over DATA and
REPURPOSE todo kw is that they can be applied orthogonally
to any todo states.  It's not ideal, because done should
mean done, but I have not found a better arrangement yet.

---
Today is awareness day.

Myalgic encephalomyelitis denialism is causing death and severe suffering
worse than MS.  Conflicts of interest are destroying research.  /You/ can
get the disease at any time permanently.  Do science and justice matter to
you?

Posters: http://www.mefreeforall.org/fileadmin/PDFs/ME_Awareness_Posters_2009.pdf

Overview: http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm

             reply	other threads:[~2009-05-12 22:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-12 22:36 Samuel Wales [this message]
2009-05-13 12:14 ` Checking for tags efficiently Carsten Dominik

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=20524da70905121536p5b0ba15teae5b37afa007dd6@mail.gmail.com \
    --to=samologist@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).