From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: v3, with support for narrowing Date: Fri, 29 Apr 2011 10:56:51 -0400 Message-ID: <3543.1304089011@alphaville.americas.hpqcorp.net> References: <867hal4a6t.wl%simon.guest@tesujimath.org> <87iptzoa5x.fsf@ucl.ac.uk> <86zknb9v1y.wl%simon.guest@tesujimath.org> <87oc3qg4f8.fsf@ucl.ac.uk> <86y62uxc90.wl%simon.guest@tesujimath.org> <86y62tyg2u.wl%simon.guest@tesujimath.org> <871v0leq3h.fsf@ericabrahamsen.net> <17141.1304048141@alphaville.dokosmarshall.org> <87k4edd6fw.fsf@ericabrahamsen.net> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFp7n-0006wA-Km for emacs-orgmode@gnu.org; Fri, 29 Apr 2011 10:56:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFp7m-0001ml-Lv for emacs-orgmode@gnu.org; Fri, 29 Apr 2011 10:56:55 -0400 Received: from g5t0007.atlanta.hp.com ([15.192.0.44]:45665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFp7m-0001ma-JR for emacs-orgmode@gnu.org; Fri, 29 Apr 2011 10:56:54 -0400 In-Reply-To: Message from Eric Abrahamsen of "Fri, 29 Apr 2011 12:31:31 +0800." <87k4edd6fw.fsf@ericabrahamsen.net> 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: Eric Abrahamsen Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Eric Abrahamsen wrote: > > The mapping API allows you to walk through the entries, filter the ones > > you want and apply a function on each remaining entry. So cribbing heavily > > from Simon's code, the following should count all the entries with tag "foo": > > Nice! Seems like the mapping API could be used as the basis for this > whole functionality. > Indeed: it would require a bit of refactoring of Simon's code to provide the function(s) to apply to each entry, and changes to the top level functions to use the mapping API instead of looping explicitly. Nick