Bastien <b...@altern.org> writes: > Hi Joakim, > > joa...@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