[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Get a list of tasks completed today

From: Nick Dokos
Subject: Re: [O] Get a list of tasks completed today
Date: Mon, 17 Feb 2014 10:27:55 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Trevor Murphy <address@hidden> writes:

> ...
> One thing I'd like to do is run a function over every item that was
> closed this past week.  For sake of example, let's say I've added a
> property ":mood: 5" to several closed items and I'd like to delete it
> (but only from the closed items; I'm not necessarily deleting the
> property globally.)
> To do this I tried pulling all the closed items, visiting them in
> turn, and calling (org-delete-property "mood").  But I got stuck
> pulling all the closed items, because `org-tags-view' and friends all
> build an agenda as a side effect.
> Is my best bet simply re-implementing the parts of `org-tags-view'
> that I need?
> Or is there a more common way to use the org machinery to work with
> items in lisp code? 

You should be able to do this with the mapping and property APIs:

(info "(org) Using the mapping API")
(info "(org) Using the property API")


reply via email to

[Prev in Thread] Current Thread [Next in Thread]