emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* another (possibly) noob question
@ 2011-03-15  4:15 Filippo A. Salustri
  2011-03-15 14:54 ` John Hendy
       [not found] ` <AANLkTikL1QM+Mi9dtAutvYGizff5Pj0sfwkTXyCCqAEM@mail.gmail.com>
  0 siblings, 2 replies; 5+ messages in thread
From: Filippo A. Salustri @ 2011-03-15  4:15 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1199 bytes --]

So,
I've set org-provide-todo-statistics to t
and org-hierarchical-todo-statistics to nil.
I use a TODO sequence to identify projects.  That is,
(setq org-todo-keywords
      '((sequence "REVIEW(r)" "TODO(t)" "ACTIVE(a!)" "WAIT(w@)" "SOMEDAY(s)"
                  "|"
                  "DONE(d)" "CANCELED(c@)")
        (sequence "OPEN(O@!)" "WIP(W!)" "PAUSED(P@!)" "|" "CLOSED(C@!)")
        (sequence "PROJECT(p)" "|" "COMPLETED(x)")
        ))
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?

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/

[-- Attachment #2: Type: text/html, Size: 1745 bytes --]

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

* Re: another (possibly) noob question
  2011-03-15  4:15 another (possibly) noob question Filippo A. Salustri
@ 2011-03-15 14:54 ` John Hendy
  2011-03-15 17:20   ` Filippo A. Salustri
       [not found] ` <AANLkTikL1QM+Mi9dtAutvYGizff5Pj0sfwkTXyCCqAEM@mail.gmail.com>
  1 sibling, 1 reply; 5+ messages in thread
From: John Hendy @ 2011-03-15 14:54 UTC (permalink / raw)
  To: Filippo A. Salustri; +Cc: emacs-orgmode

On Mon, Mar 14, 2011 at 11:15 PM, Filippo A. Salustri
<salustri@ryerson.ca> wrote:
> So,
> I've set org-provide-todo-statistics to t
> and org-hierarchical-todo-statistics to nil.
> I use a TODO sequence to identify projects.  That is,
> (setq org-todo-keywords
>       '((sequence "REVIEW(r)" "TODO(t)" "ACTIVE(a!)" "WAIT(w@)" "SOMEDAY(s)"
>                   "|"
>                   "DONE(d)" "CANCELED(c@)")
>         (sequence "OPEN(O@!)" "WIP(W!)" "PAUSED(P@!)" "|" "CLOSED(C@!)")
>         (sequence "PROJECT(p)" "|" "COMPLETED(x)")
>         ))
> 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 you 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 PROJECT

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/
>

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

* Re: another (possibly) noob question
  2011-03-15 14:54 ` John Hendy
@ 2011-03-15 17:20   ` Filippo A. Salustri
  2011-03-15 17:29     ` Manish
  0 siblings, 1 reply; 5+ messages in thread
From: Filippo A. Salustri @ 2011-03-15 17:20 UTC (permalink / raw)
  To: John Hendy; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 3664 bytes --]

Sorry for the lack of info.
org version 7.4

I created a new/test org file.  It contains:
* PROJECT aaa
** TODO t1
** TODO t2
* TODO bbb [0/2]
:PROPERTIES:
:CATEGORY: dummy
:END:
** TODO t3
** TODO t4

If I leave out the [/], then all is well.
If I add the [/] at the end of a level 1 heading that WAS a PROJECT, then do
a C-c C-c there to update it, the PROJECT changes to TODO (which is the
nearest KEYWORD both before & after.

I have
org-hierarchical-todo-statistics set to nil cuz I'd like to gather info on
all tasks in the subtree.
org-provide-todo-statistics set to t.

Just as a reminder, I have
(setq org-todo-keywords
      '((sequence "REVIEW(r)" "TODO(t)" "ACTIVE(a!)" "WAIT(w@)" "SOMEDAY(s)"
                  "|"
                  "DONE(d)" "CANCELED(c@)")
        (sequence "OPEN(O@!)" "WIP(W!)" "PAUSED(P@!)" "|" "CLOSED(C@!)")
        (sequence "PROJECT(p)" "|" "COMPLETED(x)")
        ))


Can anyone shed light on this?

Cheers.
Fil

On 15 March 2011 10:54, John Hendy <jw.hendy@gmail.com> wrote:

> On Mon, Mar 14, 2011 at 11:15 PM, Filippo A. Salustri
> <salustri@ryerson.ca> wrote:
> > So,
> > I've set org-provide-todo-statistics to t
> > and org-hierarchical-todo-statistics to nil.
> > I use a TODO sequence to identify projects.  That is,
> > (setq org-todo-keywords
> >       '((sequence "REVIEW(r)" "TODO(t)" "ACTIVE(a!)" "WAIT(w@)"
> "SOMEDAY(s)"
> >                   "|"
> >                   "DONE(d)" "CANCELED(c@)")
> >         (sequence "OPEN(O@!)" "WIP(W!)" "PAUSED(P@!)" "|" "CLOSED(C@!)")
> >         (sequence "PROJECT(p)" "|" "COMPLETED(x)")
> >         ))
> > 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
> you 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
> PROJECT
>
> 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/
> >
>



-- 
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/

[-- Attachment #2: Type: text/html, Size: 5352 bytes --]

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

* Re: another (possibly) noob question
  2011-03-15 17:20   ` Filippo A. Salustri
@ 2011-03-15 17:29     ` Manish
  0 siblings, 0 replies; 5+ messages in thread
From: Manish @ 2011-03-15 17:29 UTC (permalink / raw)
  To: Filippo A. Salustri; +Cc: emacs-orgmode

I could not replicate it.  C-c C-c on [/] at the end of an item with
keyword PROJECT updated the cookie and did not switch the state to
TODO.  Changing a sub-item state to DONE also correctly (and
automagically) updated the cookie.

-- 
Manish

On Tue, Mar 15, 2011 at 10:50 PM, Filippo A. Salustri
<salustri@ryerson.ca> wrote:
> Sorry for the lack of info.
> org version 7.4
>
> I created a new/test org file.  It contains:
> * PROJECT aaa
> ** TODO t1
> ** TODO t2
> * TODO bbb [0/2]
> :PROPERTIES:
> :CATEGORY: dummy
> :END:
> ** TODO t3
> ** TODO t4
> If I leave out the [/], then all is well.
> If I add the [/] at the end of a level 1 heading that WAS a PROJECT, then do
> a C-c C-c there to update it, the PROJECT changes to TODO (which is the
> nearest KEYWORD both before & after.
> I have
> org-hierarchical-todo-statistics set to nil cuz I'd like to gather info on
> all tasks in the subtree.
> org-provide-todo-statistics set to t.
> Just as a reminder, I have
> (setq org-todo-keywords
>       '((sequence "REVIEW(r)" "TODO(t)" "ACTIVE(a!)" "WAIT(w@)" "SOMEDAY(s)"
>                   "|"
>                   "DONE(d)" "CANCELED(c@)")
>         (sequence "OPEN(O@!)" "WIP(W!)" "PAUSED(P@!)" "|" "CLOSED(C@!)")
>         (sequence "PROJECT(p)" "|" "COMPLETED(x)")
>         ))
>
> Can anyone shed light on this?
> Cheers.
> Fil
> On 15 March 2011 10:54, John Hendy <jw.hendy@gmail.com> wrote:
>>
>> On Mon, Mar 14, 2011 at 11:15 PM, Filippo A. Salustri
>> <salustri@ryerson.ca> wrote:
>> > So,
>> > I've set org-provide-todo-statistics to t
>> > and org-hierarchical-todo-statistics to nil.
>> > I use a TODO sequence to identify projects.  That is,
>> > (setq org-todo-keywords
>> >       '((sequence "REVIEW(r)" "TODO(t)" "ACTIVE(a!)" "WAIT(w@)"
>> > "SOMEDAY(s)"
>> >                   "|"
>> >                   "DONE(d)" "CANCELED(c@)")
>> >         (sequence "OPEN(O@!)" "WIP(W!)" "PAUSED(P@!)" "|" "CLOSED(C@!)")
>> >         (sequence "PROJECT(p)" "|" "COMPLETED(x)")
>> >         ))
>> > 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
>> you 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
>> PROJECT
>>
>> 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/
>> >
>
>
>
> --
> 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/
>

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

* Re: another (possibly) noob question
       [not found] ` <AANLkTikL1QM+Mi9dtAutvYGizff5Pj0sfwkTXyCCqAEM@mail.gmail.com>
@ 2011-03-15 21:55   ` Filippo A. Salustri
  0 siblings, 0 replies; 5+ messages in thread
From: Filippo A. Salustri @ 2011-03-15 21:55 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2473 bytes --]

Yep; I'm a noob.
David rightly pointed me at org-after-todo-statistics-hook, which I'd set up
to do as he does.
The code for that was so far away in my .emacs file from the rest of the
TODO stuff that I missed it.
I corrected the code (it still does that, except it ignores PROJECT
keywords), and all seems right with the world again.

Thanks for the help and the patience.
Cheers.
Fil

On 15 March 2011 14:10, David Ellis <ddellis914@gmail.com> wrote:

> Do you have a line similar to the following in your .emacs file?
>
> (add-hook 'org-after-todo-statistics-hook 'org-summary-todo)
>
> If so, what is the contents of the function that in the above line is
> called org-summary-todo.
>
> I have this implemented in my setup to automatically change the todo
> state based on progress.
>
> Dave
>
> On Mon, Mar 14, 2011 at 11:15 PM, Filippo A. Salustri
> <salustri@ryerson.ca> wrote:
> > So,
> > I've set org-provide-todo-statistics to t
> > and org-hierarchical-todo-statistics to nil.
> > I use a TODO sequence to identify projects.  That is,
> > (setq org-todo-keywords
> >       '((sequence "REVIEW(r)" "TODO(t)" "ACTIVE(a!)" "WAIT(w@)"
> "SOMEDAY(s)"
> >                   "|"
> >                   "DONE(d)" "CANCELED(c@)")
> >         (sequence "OPEN(O@!)" "WIP(W!)" "PAUSED(P@!)" "|" "CLOSED(C@!)")
> >         (sequence "PROJECT(p)" "|" "COMPLETED(x)")
> >         ))
> > 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?
> > 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/
> >
>



-- 
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/

[-- Attachment #2: Type: text/html, Size: 3603 bytes --]

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

end of thread, other threads:[~2011-03-15 21:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-15  4:15 another (possibly) noob question Filippo A. Salustri
2011-03-15 14:54 ` John Hendy
2011-03-15 17:20   ` Filippo A. Salustri
2011-03-15 17:29     ` Manish
     [not found] ` <AANLkTikL1QM+Mi9dtAutvYGizff5Pj0sfwkTXyCCqAEM@mail.gmail.com>
2011-03-15 21:55   ` Filippo A. Salustri

Code repositories for project(s) associated with this 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).