From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: another (possibly) noob question Date: Tue, 15 Mar 2011 09:54:35 -0500 Message-ID: References: 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=33086 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzVdv-0001Yf-0F for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 10:54:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzVdt-0003Xu-Eg for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 10:54:38 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:34854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzVdt-0003Xj-8Q for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 10:54:37 -0400 Received: by bwz17 with SMTP id 17so715397bwz.0 for ; Tue, 15 Mar 2011 07:54:36 -0700 (PDT) In-Reply-To: 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: "Filippo A. Salustri" Cc: emacs-orgmode@gnu.org On Mon, Mar 14, 2011 at 11:15 PM, Filippo A. Salustri wrote: > So, > I've set=C2=A0org-provide-todo-statistics to t > and=C2=A0org-hierarchical-todo-statistics to nil. > I use a TODO sequence to identify projects. =C2=A0That is, > (setq org-todo-keywords > =C2=A0=C2=A0 =C2=A0 =C2=A0'((sequence "REVIEW(r)" "TODO(t)" "ACTIVE(a!)" = "WAIT(w@)" "SOMEDAY(s)" > =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"|" > =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"DONE= (d)" "CANCELED(c@)") > =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0(sequence "OPEN(O@!)" "WIP(W!)" "PAUSED(= P@!)" "|" "CLOSED(C@!)") > =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0(sequence "PROJECT(p)" "|" "COMPLETED(x)= ") > =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0)) > I then set level 1 headlines to be PROJECT and put [/] at the end of the > headline. > The hope is to see projects at a glance and get the fraction done too. > All is as it should be, but for one thing. > When I toggle or insert within a subtree, the headline for that project > changes from PROJECT to ACTIVE if less than all tasks are done, and DONE = if > all tasks are done. > Obviously, I want it to stay PROJECT. > I've spent over an hour trying to figure this one out and I can't. > Anyone got any advice? I don't use this, but replicating your example, I don't get the behavior yo= u do. - I added your todo definitions to my .emacs - I created a simple top-level headline in a blank file and used C-c C-t to make it a PROJECT - I added three second-level headlines and made them all TODOs - I marked them done one by one and the top level always stayed as a PROJEC= T My end result: ,----- | * PROJECT some project [3/3] | ** DONE do something | CLOSED: [2011-03-15 Tue 09:51] | ** DONE do something else | CLOSED: [2011-03-15 Tue 09:50] | ** DONE do something further | CLOSED: [2011-03-15 Tue 09:49] `----- Perhaps list your org-mode version? Others will be able to debug better than I can. Perhaps start with a simple, blank file as well (or maybe you already are?). I can't figure out what would trigger it from PROJECT to the keyword in another sequence without directly specifying such. Good luck, John > Cheers. > Fil > > -- > Filippo A. Salustri, Ph.D., P.Eng. > Mechanical and Industrial Engineering > Ryerson University > 350 Victoria St, Toronto, ON > M5B 2K3, Canada > Tel: 416/979-5000 ext 7749 > Fax: 416/979-5265 > Email: salustri@ryerson.ca > http://deseng.ryerson.ca/~fil/ >