emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Org-mode issue with cyclic tasks and checkboxes


From: Myles English
Subject: Re: [O] Org-mode issue with cyclic tasks and checkboxes
Date: Wed, 27 Nov 2013 13:02:17 +0000
User-agent: mu4e 0.9.9.5; emacs 24.3.1

Hi Borja,

I can't see that you have received a reply yet, which is unusual for
this excellent list.

address@hidden writes:

> I am working with cyclic or repetitive tasks in org-mode, inside this task,
> I have several checkboxes. So when I finished all the list, normally I put
> the task as done, and new task with sublist of checkboxes is created for
> the next cycle, however, those checkboxes appears as ticked and I think
> should be unticked as it is new cycle task, e.g.:
>
> * TODO Cyclic monthly home [0/5]
> SCHEDULED: <2013-11-30 Sat +1m>
>  - [ ] pay sauna
>  - [ ] pay electricity
>  - [ ] pay renting
>  - [ ] pay internet
>  - [ ] pay union
>
> Once I ticked all of them and put it as done, this is what I can see:
>
> * WIP Cyclic monthly home [5/5]
> SCHEDULED: <2014-01-30 Thu +1m>
> - State "DONE"       from "WIP"        [2013-11-06 Wed 20:49]
> :PROPERTIES:
> :LAST_REPEAT: [2013-11-06 Wed 20:49]
> :END:
>  - [X] pay sauna <--- this should be unticked
>  - [X] pay electricity <-- this should be unticked
>  - [X] pay renting <-- this should be unticked
>  - [X] pay internet <-- this should be unticked
>  - [X] pay union <-- this should be unticked
>
> Am I missing something? or is some bug that should be fixed?

May be use this:

;; uncheck tick boxes -----------
(require 'org-checklist)
(defun my-uncheck-ticks()
    "Uncheck tick boxes in the TODO item when state is changed to DONE"
    ( when (and (string= org-state "DONE")
                (org-get-repeat))
      (org-reset-checkbox-state-subtree)))

(add-hook 'org-after-todo-state-change-hook
          'my-uncheck-ticks)

> I am using those versions:
>
> Emacs version:
> GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
> of 2013-08-30 on apocalipsis
>
> Org-mode version:
> Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @
> /usr/local/share/emacs/24.3/lisp/org/)

Org 8 is out, may be time to upgrade?

Myles



reply via email to

[Prev in Thread] Current Thread [Next in Thread]