emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* a small idea for repeating tasks
@ 2009-06-26  3:55 Samuel Wales
  2009-06-26  4:15 ` Charles Cave
  2009-06-26  7:52 ` Carsten Dominik
  0 siblings, 2 replies; 5+ messages in thread
From: Samuel Wales @ 2009-06-26  3:55 UTC (permalink / raw)
  To: emacs-orgmode

When you try to mark a repeating task done, org appears to
change it to the first item in org-todo-keywords.  Many
people have "TODO" there.  This appears to conflict with other uses of
that variable, as it also determines sort order and cycle order.

Perhaps a new variable can contain the todo keyword that
should be used when a repeating task is marked done.

Then it doesn't matter what sort order you use.

Thanks.

-- 
Myalgic encephalomyelitis denialism is causing death and severe suffering,
worse than MS.  Conflicts of interest are destroying research.  /You/ can
get the disease at any time permanently.  Do science and justice matter to
you?  http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm

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

* Re: a small idea for repeating tasks
  2009-06-26  3:55 a small idea for repeating tasks Samuel Wales
@ 2009-06-26  4:15 ` Charles Cave
  2009-06-26  4:47   ` Charles Cave
  2009-06-26  7:52 ` Carsten Dominik
  1 sibling, 1 reply; 5+ messages in thread
From: Charles Cave @ 2009-06-26  4:15 UTC (permalink / raw)
  To: emacs-orgmode

Samuel Wales <samologist <at> gmail.com> writes:

> When you try to mark a repeating task done, org appears to
> change it to the first item in org-todo-keywords.  Many
> people have "TODO" there.  This appears to conflict with other uses of
> that variable, as it also determines sort order and cycle order.

I noticed this as well.  My configuration has:

#+SEQ_TODO: TODO(t) STARTED(s) REPEAT(r) WAITING(w) APPT(a) | DONE(d)
CANCELLED(c) DEFERRED(f)

I set up repeating tasks with a keyword of REPEAT (to exclude from
TODO lists) but as you observed, changing to done resets the keyword
to REPEAT.

Perhaps the functionality of changing to DONE needs to remember
what the state was before changing to DONE?

Charles

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

* Re: a small idea for repeating tasks
  2009-06-26  4:15 ` Charles Cave
@ 2009-06-26  4:47   ` Charles Cave
  0 siblings, 0 replies; 5+ messages in thread
From: Charles Cave @ 2009-06-26  4:47 UTC (permalink / raw)
  To: emacs-orgmode



I meant it changes it back to TODO, not REPEAT

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

* Re: a small idea for repeating tasks
  2009-06-26  3:55 a small idea for repeating tasks Samuel Wales
  2009-06-26  4:15 ` Charles Cave
@ 2009-06-26  7:52 ` Carsten Dominik
  2009-06-26 16:39   ` Samuel Wales
  1 sibling, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2009-06-26  7:52 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode


On Jun 26, 2009, at 5:55 AM, Samuel Wales wrote:

> When you try to mark a repeating task done, org appears to
> change it to the first item in org-todo-keywords.  Many
> people have "TODO" there.  This appears to conflict with other uses of
> that variable, as it also determines sort order and cycle order.
>
> Perhaps a new variable can contain the todo keyword that
> should be used when a repeating task is marked done.
>
> Then it doesn't matter what sort order you use.
>
> Thanks.

This is because you have set up your TODO keywords as `sequence',
not as `type'.  So the repeater assumes that this is a sequence
of states that should be repeated.

If you did

#+TYP_TODO: TODO(t) STARTED(s) REPEAT(r) WAITING(w) APPT(a) | DONE(d)
CANCELLED(c) DEFERRED(f)

this would work as you expect.

Type or sequence make a difference only in two situations:

1. When the repeater rests an entry
2. When you press C-c C-t and *don't* use fast access keys
    to TODO states.  Then `C-c C-t' will jump directly to DONE
    from any not-done state.

Sounds pretty consistent to me.

I guess we could have a property to force a particular repeat state
where needed....

- Carsten

>
> --  
> Myalgic encephalomyelitis denialism is causing death and severe  
> suffering,
> worse than MS.  Conflicts of interest are destroying research.  / 
> You/ can
> get the disease at any time permanently.  Do science and justice  
> matter to
> you?  http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: a small idea for repeating tasks
  2009-06-26  7:52 ` Carsten Dominik
@ 2009-06-26 16:39   ` Samuel Wales
  0 siblings, 0 replies; 5+ messages in thread
From: Samuel Wales @ 2009-06-26 16:39 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Yes, that seems to work for me.

Thank you.


On 2009-06-26, Carsten Dominik <carsten.dominik@gmail.com> wrote:
> Type or sequence make a difference only in two situations:
>
> 1. When the repeater rests an entry
> 2. When you press C-c C-t and *don't* use fast access keys
>     to TODO states.  Then `C-c C-t' will jump directly to DONE
>     from any not-done state.

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

end of thread, other threads:[~2009-06-26 16:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-26  3:55 a small idea for repeating tasks Samuel Wales
2009-06-26  4:15 ` Charles Cave
2009-06-26  4:47   ` Charles Cave
2009-06-26  7:52 ` Carsten Dominik
2009-06-26 16:39   ` Samuel Wales

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).