From: Myles English <mylesenglish@gmail.com>
To: Borja Tarraso <borja.tarraso@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Org-mode issue with cyclic tasks and checkboxes
Date: Wed, 27 Nov 2013 13:02:17 +0000 [thread overview]
Message-ID: <87k3fu0zhi.fsf@gmail.com> (raw)
In-Reply-To: <CAOykPARWc5rEb_0SQ3p6tcFaW7d8HGJ-KMH3Ku4ORJ8ROQc11w@mail.gmail.com>
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
next prev parent reply other threads:[~2013-11-27 13:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-16 15:24 Org-mode issue with cyclic tasks and checkboxes Borja Tarraso
2013-11-27 13:02 ` Myles English [this message]
2013-11-27 13:20 ` Borja Tarraso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k3fu0zhi.fsf@gmail.com \
--to=mylesenglish@gmail.com \
--cc=borja.tarraso@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).