* Checking for tags efficiently
@ 2009-05-12 22:36 Samuel Wales
2009-05-13 12:14 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Samuel Wales @ 2009-05-12 22:36 UTC (permalink / raw
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Checking for tags efficiently
2009-05-12 22:36 Checking for tags efficiently Samuel Wales
@ 2009-05-13 12:14 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-05-13 12:14 UTC (permalink / raw
To: Samuel Wales; +Cc: emacs-orgmode
On May 13, 2009, at 12:36 AM, Samuel Wales wrote:
> 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.
Hi John,
when using org-map-entries, the second parameter is a string
that is a tags/property search. There you can add -data and -repurpose,
like
(org-map-entries 'my-archive-function "-data-repurpose/!DONE" ...
or something like this.
HTH
- Carsten
>
> 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
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-13 16:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-12 22:36 Checking for tags efficiently Samuel Wales
2009-05-13 12:14 ` Carsten Dominik
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.