emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Habits default on first STATE when rescheduled
@ 2010-12-20 14:40 Sébastien Vauban
  2010-12-20 16:20 ` Bernt Hansen
  2010-12-20 16:38 ` Matt Lundin
  0 siblings, 2 replies; 4+ messages in thread
From: Sébastien Vauban @ 2010-12-20 14:40 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi,

Having the following possible states:

#+begin_src emacs-lisp
  (setq org-todo-keywords
        '((sequence "NEW(n!)"
                    "TODO(t!)"
                    "WAIT(w!)"
                    "DLGT(l!)"
                    "|"
                    "DONE(d!)"
                    "DFRD(f!)"
                    "CANX(c!)")))
#+end_src

the habits, when DONE, go back to state NEW, instead of TODO. Of course, there
is no way for Org to know it has to re-begin at the second state (in this
case).

Maybe it'd be good to add an index for habit cycles, or so?

The other alternative is to put NEW after TODO, but this is quite meaningless,
for all the other non-habit tasks that would be first TODO, then NEW, then...
when cycling with S-arrow.

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Habits default on first STATE when rescheduled
  2010-12-20 14:40 Habits default on first STATE when rescheduled Sébastien Vauban
@ 2010-12-20 16:20 ` Bernt Hansen
  2010-12-20 16:38 ` Matt Lundin
  1 sibling, 0 replies; 4+ messages in thread
From: Bernt Hansen @ 2010-12-20 16:20 UTC (permalink / raw)
  To: Sébastien Vauban; +Cc: public-emacs-orgmode-mXXj517/zsQ



Sébastien Vauban <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
writes:

> Having the following possible states:
>
> #+begin_src emacs-lisp
>   (setq org-todo-keywords
>         '((sequence "NEW(n!)"
>                     "TODO(t!)"
>                     "WAIT(w!)"
>                     "DLGT(l!)"
>                     "|"
>                     "DONE(d!)"
>                     "DFRD(f!)"
>                     "CANX(c!)")))
> #+end_src
>
> the habits, when DONE, go back to state NEW, instead of TODO. Of course, there
> is no way for Org to know it has to re-begin at the second state (in this
> case).
>
> Maybe it'd be good to add an index for habit cycles, or so?
>
> The other alternative is to put NEW after TODO, but this is quite meaningless,
> for all the other non-habit tasks that would be first TODO, then NEW, then...
> when cycling with S-arrow.

Hi Seb,

You can add a property to your habits

  :REPEAT_TO_STATE: TODO

which forces this state for repeating tasks when the item is marked DONE

HTH,
Bernt

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

* Re: Habits default on first STATE when rescheduled
  2010-12-20 14:40 Habits default on first STATE when rescheduled Sébastien Vauban
  2010-12-20 16:20 ` Bernt Hansen
@ 2010-12-20 16:38 ` Matt Lundin
  2010-12-20 20:56   ` Sébastien Vauban
  1 sibling, 1 reply; 4+ messages in thread
From: Matt Lundin @ 2010-12-20 16:38 UTC (permalink / raw)
  To: Sébastien Vauban; +Cc: Org Mode

Sébastien Vauban <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
writes:

> Having the following possible states:
>
> #+begin_src emacs-lisp
>   (setq org-todo-keywords
>         '((sequence "NEW(n!)"
>                     "TODO(t!)"
>                     "WAIT(w!)"
>                     "DLGT(l!)"
>                     "|"
>                     "DONE(d!)"
>                     "DFRD(f!)"
>                     "CANX(c!)")))
> #+end_src
>
> the habits, when DONE, go back to state NEW, instead of TODO. Of course, there
> is no way for Org to know it has to re-begin at the second state (in this
> case).
>

Have you tried the following setting?

(setq org-todo-repeat-to-state "TODO")

You can also set this locally with the :REPEAT_TO_STATE: property.

Best,
Matt

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

* Re: Habits default on first STATE when rescheduled
  2010-12-20 16:38 ` Matt Lundin
@ 2010-12-20 20:56   ` Sébastien Vauban
  0 siblings, 0 replies; 4+ messages in thread
From: Sébastien Vauban @ 2010-12-20 20:56 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Bernt and Matt,

Matt Lundin wrote:
> Have you tried the following setting?
>
> (setq org-todo-repeat-to-state "TODO")
>
> You can also set this locally with the :REPEAT_TO_STATE: property.

Like always. You think some tiny stuff is missing... while it is already
there!

Thanks...

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2010-12-20 20:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-20 14:40 Habits default on first STATE when rescheduled Sébastien Vauban
2010-12-20 16:20 ` Bernt Hansen
2010-12-20 16:38 ` Matt Lundin
2010-12-20 20:56   ` Sébastien Vauban

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