From mboxrd@z Thu Jan 1 00:00:00 1970 From: joakim@verona.se Subject: Re: How to generate agenda view tasks of all states? Date: Wed, 02 Jan 2013 20:08:51 +0100 Message-ID: References: <87ehi9fakw.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqTgd-00017T-QW for emacs-orgmode@gnu.org; Wed, 02 Jan 2013 14:09:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TqTgc-0000Ed-Lt for emacs-orgmode@gnu.org; Wed, 02 Jan 2013 14:09:11 -0500 Received: from mx2.bahnhof.se ([213.80.101.12]:65075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqTgc-0000EV-F4 for emacs-orgmode@gnu.org; Wed, 02 Jan 2013 14:09:10 -0500 In-Reply-To: <87ehi9fakw.fsf@bzg.ath.cx> (Bastien's message of "Sat, 29 Dec 2012 10:53:51 +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: Bastien Cc: emacs-orgmode@gnu.org Bastien writes: > 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'. Thanks, this does inded seem to work! > HTH, -- Joakim Verona