emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Automatic change of TODO
@ 2009-11-04 13:54 Alessandro Pacaccio
  2009-11-05  7:05 ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Alessandro Pacaccio @ 2009-11-04 13:54 UTC (permalink / raw)
  To: emacs-orgmode

Hi!

I've an outline like this:

* Project A
** TODO Task A-1 [0/3]
*** TODO Subtask A-1-a
*** TODO Subtask A-1-b
*** TODO Subtask A-1-c

where level 1 heading is the name of a project, level 2 heading is a generic
task broken into three level 3 headings.
As suggested in section 5.5 of the manual, I've hooked the org-summary-todo
function to org-after-todo-statistics-hook, in order to automatically change the
level 2 TODO to DONE when all the subtasks are DONE.
Unfortunately, when I change to DONE the first subtask, an unexpected TODO is
added to level 1 heading:

* TODO Project A
** TODO Task A-1 [1/3]
*** DONE Subtask A-1-a
*** TODO Subtask A-1-b
*** TODO Subtask A-1-c

From now on, the switch TODO->DONE or DONE/TODO applies to level 1 heading, even
if the [/] cookie in level 2 is correctly updated:

* DONE Project A
** TODO Task A-1 [3/3]
*** DONE Subtask A-1-a
*** DONE Subtask A-1-b
*** DONE Subtask A-1-c

Is there a way to apply the automatic change of TODO to the parent heading only,
as below?

* Project A
** DONE Task A-1 [3/3]
*** DONE Subtask A-1-a
*** DONE Subtask A-1-b
*** DONE Subtask A-1-c

Thank you.
- Alessandro

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-11-05 13:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-04 13:54 Automatic change of TODO Alessandro Pacaccio
2009-11-05  7:05 ` Carsten Dominik
2009-11-05 11:12   ` Alessandro Pacaccio
2009-11-05 12:18     ` Carsten Dominik
2009-11-05 13:06       ` org-latest (was:Re: Re: Automatic change of TODO) Giovanni Ridolfi

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).