From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Overview of agenda files Date: Mon, 29 Sep 2008 07:51:14 +0200 Message-ID: <9DB919C6-23C6-4D3A-A232-7FE93DC3F1DC@uva.nl> References: <1222255681.24243.1275691879@webmail.messagingengine.com> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KkCb1-0007pQ-1y for emacs-orgmode@gnu.org; Mon, 29 Sep 2008 02:51:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KkCaz-0007nN-8H for emacs-orgmode@gnu.org; Mon, 29 Sep 2008 02:51:01 -0400 Received: from [199.232.76.173] (port=43514 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KkCay-0007n9-VI for emacs-orgmode@gnu.org; Mon, 29 Sep 2008 02:51:01 -0400 Received: from mx20.gnu.org ([199.232.41.8]:40031) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KkCay-0004aO-DP for emacs-orgmode@gnu.org; Mon, 29 Sep 2008 02:51:00 -0400 Received: from pony.ic.uva.nl ([145.18.40.181]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KkCav-0000y5-1Y for emacs-orgmode@gnu.org; Mon, 29 Sep 2008 02:50:57 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Manish Cc: emacs-orgmode@gnu.org On Sep 29, 2008, at 5:09 AM, Manish wrote: > On Mon, Sep 29, 2008 at 2:09 AM, Vladi Solutka wrote: >> Hi! >> >> Carsten Dominik writes: >> >>>> All I currently miss is the possibility to have a top overview of >>>> my >>>> projects, listing the count of the different keywords (since each >>>> project has its own file, this would be in fact an overview of my >>>> agenda files). >> >> [...] >> >>> There is nothing built-in to make something like this, but using >>> dynamic blocks and the entry mapper, it can be implemented >>> compactly. >>> >>> Load the following code, in .emacs or so.... >> >> [...] >> >> Wow, thanks alot :-) I thought about writing an external script since >> I don't really know too much about lisp, but I definitely prefer a >> 'native' solution. Unfortunately I get a >> >> Lisp error: (void-variable my-count-todo-states-internal) >> >> Stack trace: >> (lambda nil my-count-todo-states-internal)() >> org-scan-tags(my-count-todo-states-internal t) >> org-map-entries(my-count-todo-states-internal nil agenda :name >> "count-todo-states" :states ("TODO" "WAIT" "LATER") :content #("\n" >> 0 1 >> (fontified t))) >> apply(org-map-entries my-count-todo-states-internal nil agenda (:name >> "count-todo-states" :states ("TODO" "WAIT" "LATER") :content #("\n" >> 0 1 >> (fontified t)))) >> org-dblock-write:count-todo-states((:name "count-todo-states" > :states ("TODO" >> "WAIT" "LATER") :content #("\n" 0 1 (fontified t)))) >> > > FWIW, it worked for me Hi Manish, thanks for checking. It turns out that I had to fix a little bug to make this hack it work, obviously you already pulled the latest version before you tried. So yes, Vladi, you need to either get the git version or wait for the 6.08 release. - Carsten > (Thanks Carsten.) I eval'ed the two functions > and added this to an .org file: > > ,---- > | #+BEGIN: count-todo-states :states ("TODO" "APPT" "NEXT" "WAITING" > "DONE" ) > | #+END: count-todo-states > `---- > > and did a C-c C-c on the lines to get the summary table. > > -- Manish > > > _______________________________________________ > 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