emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Get a list of tasks completed today
Date: Mon, 17 Feb 2014 10:27:55 -0500	[thread overview]
Message-ID: <87iosd69ok.fsf@alphaville.bos.redhat.com> (raw)
In-Reply-To: 87txbx4yl6.fsf@gmail.com

Trevor Murphy <trevor.m.murphy@gmail.com> 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")

--
Nick

      parent reply	other threads:[~2014-02-17 15:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-13 10:35 Get a list of tasks completed today Sebastien Vauban
2014-02-16 19:46 ` Sebastien Vauban
2014-02-17  8:07   ` Loris Bennett
2014-02-17 13:40     ` Sebastien Vauban
2014-02-17 14:12     ` Trevor Murphy
2014-02-17 14:33       ` Trevor Murphy
2014-02-17 15:27       ` Nick Dokos [this message]

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=87iosd69ok.fsf@alphaville.bos.redhat.com \
    --to=ndokos@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).