From: Carsten Dominik <dominik@uva.nl>
To: Manish <mailtomanish.sharma@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Overview of agenda files
Date: Mon, 29 Sep 2008 07:51:14 +0200 [thread overview]
Message-ID: <9DB919C6-23C6-4D3A-A232-7FE93DC3F1DC@uva.nl> (raw)
In-Reply-To: <e7cdbe30809282009r6d845155kd29213adb2874faf@mail.gmail.com>
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
next prev parent reply other threads:[~2008-09-29 6:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-24 11:28 Overview of agenda files Vladi Solutka
2008-09-26 16:10 ` Carsten Dominik
2008-09-28 20:39 ` Vladi Solutka
2008-09-29 3:09 ` Manish
2008-09-29 5:51 ` Carsten Dominik [this message]
2008-10-01 17:01 ` Vladi Solutka
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9DB919C6-23C6-4D3A-A232-7FE93DC3F1DC@uva.nl \
--to=dominik@uva.nl \
--cc=emacs-orgmode@gnu.org \
--cc=mailtomanish.sharma@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.