emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emacs-wiki-discuss] Planenr snippet: count tasks in page


From: Janne Hellsten
Subject: Re: [emacs-wiki-discuss] Planenr snippet: count tasks in page
Date: Wed, 20 Jul 2005 21:56:47 +0900

> GtdAtComputer (<lisp>(chrismdp/planner-count-tasks "GtdAtComputer"
> "_")</lisp> open tasks, <lisp>(chrismdp/planner-count-tasks
> "GtdAtComputer" "_" "A")</lisp> high priority)
> GtdHome (<lisp>(chrismdp/planner-count-tasks "GtdHome" "_")</lisp> open
> tasks, <lisp>(chrismdp/planner-count-tasks "GtdHome" "_" "A")</lisp>
> high priority)

I tried to be clever and replace the above with this:

-- clip clip --
<lisp>
(mapconcat
 (lambda (x)
   (format "%s (%i open tasks, %i high priority)" x
           (chrismdp/planner-count-tasks x "_")
           (chrismdp/planner-count-tasks x "_" "A")))
 (list "GtdAtComputer" 
       "GtdHome") "\n")
</lisp>
-- clip clip --

But it looks like Wiki treats the <lisp> block as one entity, and does
not try to scan it for links etc.  This means that the above, although
working, does not create links to the plan pages in the list.

I wonder if there's a way to get the <lisp> block's output somehow
evaluated by emacs-wiki after the block's value is reduced to a
string.  I'm a complete planner 00b, so please excuse me if this is
FAQ.

Best regards,
Janne




reply via email to

[Prev in Thread] Current Thread [Next in Thread]