emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org-mode issue with cyclic tasks and checkboxes
@ 2013-11-16 15:24 Borja Tarraso
  2013-11-27 13:02 ` Myles English
  0 siblings, 1 reply; 3+ messages in thread
From: Borja Tarraso @ 2013-11-16 15:24 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi,

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?

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

Regards,
Borja Tarraso

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

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

* Re: Org-mode issue with cyclic tasks and checkboxes
  2013-11-16 15:24 Org-mode issue with cyclic tasks and checkboxes Borja Tarraso
@ 2013-11-27 13:02 ` Myles English
  2013-11-27 13:20   ` Borja Tarraso
  0 siblings, 1 reply; 3+ messages in thread
From: Myles English @ 2013-11-27 13:02 UTC (permalink / raw)
  To: Borja Tarraso; +Cc: emacs-orgmode


Hi Borja,

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

borja.tarraso@gmail.com 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

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

* Re: Org-mode issue with cyclic tasks and checkboxes
  2013-11-27 13:02 ` Myles English
@ 2013-11-27 13:20   ` Borja Tarraso
  0 siblings, 0 replies; 3+ messages in thread
From: Borja Tarraso @ 2013-11-27 13:20 UTC (permalink / raw)
  To: Myles English; +Cc: emacs-orgmode

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

Thanks for answer.

I already got another answer from stackoverflow, where I ask exactly the
same question, is here:

http://stackoverflow.com/questions/20164918/how-to-untick-checkboxes-in-org-mode-for-the-next-cyclic-repetitive-task

But basically the solution it was include this:

:PROPERTIES:
:RESET_CHECK_BOXES: t
:END:

and of course (require 'org-checklist) should be included in .emacs
configuration file.

Again, thanks for the answer.

Regards,
Borja Tarraso


2013/11/16 Borja Tarraso <borja.tarraso@gmail.com>

> Hi,
>
> 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?
>
> 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/)
>
> Regards,
> Borja Tarraso
>

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

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

end of thread, other threads:[~2013-11-27 13:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-16 15:24 Org-mode issue with cyclic tasks and checkboxes Borja Tarraso
2013-11-27 13:02 ` Myles English
2013-11-27 13:20   ` Borja Tarraso

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