From mboxrd@z Thu Jan 1 00:00:00 1970 From: Francesco Pizzolante Subject: Re: Project management > Dynamic block per tag + [Babel] Date: Thu, 9 Dec 2010 18:03:54 +0100 Message-ID: References: <8739qth38k.fsf@mundaneum.com> <878w0dnput.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=42871 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQjuq-0004Zw-GQ for emacs-orgmode@gnu.org; Thu, 09 Dec 2010 12:04:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQjuo-0001wr-D0 for emacs-orgmode@gnu.org; Thu, 09 Dec 2010 12:04:23 -0500 Received: from plane.gmane.org ([80.91.229.3]:45895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQjuo-0001vw-78 for emacs-orgmode@gnu.org; Thu, 09 Dec 2010 12:04:22 -0500 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1PQjul-000199-CB for emacs-orgmode@gnu.org; Thu, 09 Dec 2010 18:04:19 +0100 In-Reply-To: <878w0dnput.fsf@fastmail.fm> 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: Matt Lundin Cc: mailing-list-org-mode Hi Matt, Thanks a lor for you answer. I preferred your second suggestion as I can add it directly to my Org buffe= r: > --8<---------------cut here---------------start------------->8--- > #+source: tasklist > #+begin_src emacs-lisp :var person=3D"me" > =C2=A0(let (tasklist) > =C2=A0 =C2=A0(org-map-entries > =C2=A0 =C2=A0 (lambda () > =C2=A0 =C2=A0 =C2=A0 (add-to-list 'tasklist > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(con= cat "- " (nth 4 (org-heading-components))))) > =C2=A0 =C2=A0 (concat person "/!TODO") 'agenda) > =C2=A0 =C2=A0(mapconcat 'identity tasklist "\n")) > #+end_src > > #+call: tasklist(person=3D"Jenny") > --8<---------------cut here---------------end--------------->8--- > > Add this to an org file, replace Jenny with the appropriate name, and > type C-c C-c to spit out a list (of all TODO items tagged with the > relevant name) that looks like this: > > --8<---------------cut here---------------start------------->8--- > #+results: tasklist(person=3D"Jenny") > #+begin_example > - Call George > - Call Archie > - Estimate cost of widgets > --8<---------------cut here---------------end--------------->8--- Currently you code returns todo items with the todo keyword "TODO" only. What do I have to change in order to get all todo items with selected todo keyword? As an example, I'd like to keep in the lists the todo items with T= ODO and STARTED but not the ones marked as DONE, WAIT or NEW. Thanks again for your help. Regards, Francesco