From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Get a list of tasks completed today Date: Mon, 17 Feb 2014 10:27:55 -0500 Message-ID: <87iosd69ok.fsf@alphaville.bos.redhat.com> References: <86lhxfuwpn.fsf@somewhere.org> <86k3cu7sdz.fsf@somewhere.org> <87fvnip3fm.fsf@hornfels.zedat.fu-berlin.de> <87txbx4yl6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFQ7F-0003TT-Tw for emacs-orgmode@gnu.org; Mon, 17 Feb 2014 10:28:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFQ78-0002on-Ck for emacs-orgmode@gnu.org; Mon, 17 Feb 2014 10:28:17 -0500 Received: from plane.gmane.org ([80.91.229.3]:35082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFQ78-0002oZ-6M for emacs-orgmode@gnu.org; Mon, 17 Feb 2014 10:28:10 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WFQ76-0002cf-K5 for emacs-orgmode@gnu.org; Mon, 17 Feb 2014 16:28:08 +0100 Received: from pool-98-110-172-167.bstnma.fios.verizon.net ([98.110.172.167]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Feb 2014 16:28:08 +0100 Received: from ndokos by pool-98-110-172-167.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Feb 2014 16:28:08 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Trevor Murphy 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