From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: How to generate agenda view tasks of all states? Date: Sat, 29 Dec 2012 10:53:51 +0100 Message-ID: <87ehi9fakw.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tot75-0004ZM-Kh for emacs-orgmode@gnu.org; Sat, 29 Dec 2012 04:53:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tot74-0002wo-Ga for emacs-orgmode@gnu.org; Sat, 29 Dec 2012 04:53:55 -0500 Received: from mail-we0-f170.google.com ([74.125.82.170]:32896) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tot74-0002wd-Ad for emacs-orgmode@gnu.org; Sat, 29 Dec 2012 04:53:54 -0500 Received: by mail-we0-f170.google.com with SMTP id r1so5363368wey.29 for ; Sat, 29 Dec 2012 01:53:53 -0800 (PST) In-Reply-To: (joakim@verona.se's message of "Fri, 30 Nov 2012 16:17:10 +0100") 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: joakim@verona.se Cc: emacs-orgmode@gnu.org Hi Joakim, joakim@verona.se writes: > I would like to experiment with a graphical view of all tasks I've ever > finished, produced with graphviz or something. > > However, I can't seem to reliably generate a suitable view for further > processing. For some reason arg 0 only shows TODO items, not all states. > > Here is some tentative code, that is supposed to setup a local state so > my customizations doesnt affect the view. Am I missing something? > > (let ((org-agenda-todo-list-sublevels t) > (org-agenda-todo-ignore-with-date nil) > (org-todo-keywords '((sequence "TODO" "DONE" "CANCELLED" "dummystate"))) ) > > (org-todo-list 0)) This works: (let ((org-agenda-todo-list-sublevels t) (org-agenda-todo-ignore-with-date nil) (org-not-done-regexp (regexp-opt org-todo-keywords-1 t))) (org-todo-list)) (org-todo-list) should be called with no argument. You need to set `org-not-done-regexp' so that done tasks are not skipped, which is the default behavior of `org-todo-list'. HTH, -- Bastien