emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to get cookies working with TODOs?
@ 2014-08-19 18:28 Sharon Kimble
  2014-08-20  0:19 ` Eric Abrahamsen
  0 siblings, 1 reply; 7+ messages in thread
From: Sharon Kimble @ 2014-08-19 18:28 UTC (permalink / raw)
  To: org-mode

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

I'm trying to get cookies working with TODO items. The source document
is a book I'm writing and is an outline of each section and chapters so
that I can see what is still to be done. I'm writing it in latex but
doing the outline in orgs-mode.

--8<---------------cut here---------------start------------->8---
* TODO CHAPTER 1 - preface [0%]
** DONE Disclaimer
CLOSED: [2014-07-30 Wed 23:49]
** DONE Introduction
CLOSED: [2014-07-30 Wed 23:50]
--8<---------------cut here---------------end--------------->8---

Following "5.5 Breaking tasks down into subtasks" in the "org.pdf" I
should be able to 'C-c C-c' on the cookie and it updates the cookie,
except it doesn't work in this case. There are 5 sections which are all
completed in this chapter, but the cookie doesn't update.

--8<---------------cut here---------------start------------->8---
* TODO CHAPTER 2 - preamble [0/11] [0%]
:PROPERTIES:
:COOKIE_DATA: todo recursive
:END:
** DONE An overview of the endocrine system
CLOSED: [2014-07-31 Thu 02:12]
--8<---------------cut here---------------end--------------->8---

Like it shows on page 55. But the cookie doesn't update either in this case.

So how can I get the cookies working please?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.3.92.1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

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

* Re: How to get cookies working with TODOs?
  2014-08-19 18:28 How to get cookies working with TODOs? Sharon Kimble
@ 2014-08-20  0:19 ` Eric Abrahamsen
  2014-08-20  2:52   ` Nick Dokos
  2014-08-20 10:46   ` Sharon Kimble
  0 siblings, 2 replies; 7+ messages in thread
From: Eric Abrahamsen @ 2014-08-20  0:19 UTC (permalink / raw)
  To: emacs-orgmode

Sharon Kimble <boudiccas@skimble.plus.com> writes:

> I'm trying to get cookies working with TODO items. The source document
> is a book I'm writing and is an outline of each section and chapters so
> that I can see what is still to be done. I'm writing it in latex but
> doing the outline in orgs-mode.
>
> * TODO CHAPTER 1 - preface [0%]
> ** DONE Disclaimer
> CLOSED: [2014-07-30 Wed 23:49]
> ** DONE Introduction
> CLOSED: [2014-07-30 Wed 23:50]
>
>
> Following "5.5 Breaking tasks down into subtasks" in the "org.pdf" I
> should be able to 'C-c C-c' on the cookie and it updates the cookie,
> except it doesn't work in this case. There are 5 sections which are all
> completed in this chapter, but the cookie doesn't update.
>
> * TODO CHAPTER 2 - preamble [0/11] [0%]
> :PROPERTIES:
> :COOKIE_DATA: todo recursive
> :END:
> ** DONE An overview of the endocrine system
> CLOSED: [2014-07-31 Thu 02:12]
>
> Like it shows on page 55. But the cookie doesn't update either in this case.

Hmm, I just tried your example above, and it worked just fine. I didn't
even need to hit C-c C-c, just adding TODOs and toggling their state
updated the cookie automatically. I'm using Org-mode version 8.3beta
(release_8.3beta-232-g644e60 @ /home/eric/.emacs.d/org-mode/lisp/)

Are you using a relatively recent Org?

Eric

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

* Re: How to get cookies working with TODOs?
  2014-08-20  0:19 ` Eric Abrahamsen
@ 2014-08-20  2:52   ` Nick Dokos
  2014-08-20 10:46   ` Sharon Kimble
  1 sibling, 0 replies; 7+ messages in thread
From: Nick Dokos @ 2014-08-20  2:52 UTC (permalink / raw)
  To: emacs-orgmode

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>
>> I'm trying to get cookies working with TODO items. The source document
>> is a book I'm writing and is an outline of each section and chapters so
>> that I can see what is still to be done. I'm writing it in latex but
>> doing the outline in orgs-mode.
>>
>> * TODO CHAPTER 1 - preface [0%]
>> ** DONE Disclaimer
>> CLOSED: [2014-07-30 Wed 23:49]
>> ** DONE Introduction
>> CLOSED: [2014-07-30 Wed 23:50]
>>
>>
>> Following "5.5 Breaking tasks down into subtasks" in the "org.pdf" I
>> should be able to 'C-c C-c' on the cookie and it updates the cookie,
>> except it doesn't work in this case. There are 5 sections which are all
>> completed in this chapter, but the cookie doesn't update.
>>
>> * TODO CHAPTER 2 - preamble [0/11] [0%]
>> :PROPERTIES:
>> :COOKIE_DATA: todo recursive
>> :END:
>> ** DONE An overview of the endocrine system
>> CLOSED: [2014-07-31 Thu 02:12]
>>
>> Like it shows on page 55. But the cookie doesn't update either in this case.
>
> Hmm, I just tried your example above, and it worked just fine. I didn't
> even need to hit C-c C-c, just adding TODOs and toggling their state
> updated the cookie automatically. I'm using Org-mode version 8.3beta
> (release_8.3beta-232-g644e60 @ /home/eric/.emacs.d/org-mode/lisp/)
>

That was my experience as well - there is a variable that controls the
automatic cookie setting, org-provide-todo-statistics, but it is set to
t by default, so it should just work.

> Are you using a relatively recent Org?
>

-- 
Nick

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

* Re: How to get cookies working with TODOs?
  2014-08-20  0:19 ` Eric Abrahamsen
  2014-08-20  2:52   ` Nick Dokos
@ 2014-08-20 10:46   ` Sharon Kimble
  2014-08-20 11:51     ` Eric S Fraga
  2014-08-20 12:02     ` Nick Dokos
  1 sibling, 2 replies; 7+ messages in thread
From: Sharon Kimble @ 2014-08-20 10:46 UTC (permalink / raw)
  To: Eric Abrahamsen, Nick Dokos; +Cc: emacs-orgmode

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

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>
>> I'm trying to get cookies working with TODO items. The source document
>> is a book I'm writing and is an outline of each section and chapters so
>> that I can see what is still to be done. I'm writing it in latex but
>> doing the outline in orgs-mode.
>>
>> * TODO CHAPTER 1 - preface [0%]
>> ** DONE Disclaimer
>> CLOSED: [2014-07-30 Wed 23:49]
>> ** DONE Introduction
>> CLOSED: [2014-07-30 Wed 23:50]
>>
>>
>> Following "5.5 Breaking tasks down into subtasks" in the "org.pdf" I
>> should be able to 'C-c C-c' on the cookie and it updates the cookie,
>> except it doesn't work in this case. There are 5 sections which are all
>> completed in this chapter, but the cookie doesn't update.
>>
>> * TODO CHAPTER 2 - preamble [0/11] [0%]
>> :PROPERTIES:
>> :COOKIE_DATA: todo recursive
>> :END:
>> ** DONE An overview of the endocrine system
>> CLOSED: [2014-07-31 Thu 02:12]
>>
>> Like it shows on page 55. But the cookie doesn't update either in this case.
>
> Hmm, I just tried your example above, and it worked just fine. I didn't
> even need to hit C-c C-c, just adding TODOs and toggling their state
> updated the cookie automatically. I'm using Org-mode version 8.3beta
> (release_8.3beta-232-g644e60 @ /home/eric/.emacs.d/org-mode/lisp/)
>
> Are you using a relatively recent Org?
>
Eric - I'm using "Org-mode version 8.2.7c (release_8.2.7c
@ /home/boudiccas/git/org-mode/lisp/)", which is fairly recent so
should be okay.

Hmm, if they work for you then its something in my set-up. And after
having a play, the cookie is only changed when it is toggled [C-c C-t] to
"Waiting" which then shows
--8<---------------cut here---------------start------------->8---
** WAITING Anise
CLOSED: [2014-08-20 Wed 10:29]
--8<---------------cut here---------------end--------------->8---

And only _waiting_ shows as closed, none of these other conditions do -
--8<---------------cut here---------------start------------->8---
#+TODO: TODO DONE NEXT IN-PROGRESS NOTES FIXME WAITING
--8<---------------cut here---------------end--------------->8---

The conditions are set specifically for this one file, and I've just
reverted to a previous 'setq org-todo-keyword-faces' and that now shows
those sections marked as 'DONE' as being closed. 

If I 'C-c C-c' a TODO item, whether showing as "TODO/DONE/whatever" it
triggers the setting of 'org-tags'! So something is screwy there, but I
don't know what! But it does not trigger the insertion of "CLOSED:<the-date>"

Nick - I do have 'org-provide-todo-statistics' set to "t"

I've just uploaded my 'setup-orgmode.el' file to my bitbucket, at
"https://bitbucket.org/boudiccas/dots/src/d1c750572c9367c3d86b5a1f9cfa200e07e9d988/emacs/setup-orgmode.el?at=master"
and I would be very grateful if anybody could tell me where I'm going
wrong, and then how to put it right, please?

I think that the problems all stem from my set-up, but I can't see exactly
where. 

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.3.92.1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

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

* Re: How to get cookies working with TODOs?
  2014-08-20 10:46   ` Sharon Kimble
@ 2014-08-20 11:51     ` Eric S Fraga
  2014-08-20 12:02     ` Nick Dokos
  1 sibling, 0 replies; 7+ messages in thread
From: Eric S Fraga @ 2014-08-20 11:51 UTC (permalink / raw)
  To: Sharon Kimble; +Cc: Eric Abrahamsen, Nick Dokos, emacs-orgmode

On Wednesday, 20 Aug 2014 at 11:46, Sharon Kimble wrote:

[...]

> Hmm, if they work for you then its something in my set-up. And after
> having a play, the cookie is only changed when it is toggled [C-c C-t] to
> "Waiting" which then shows
>
> ** WAITING Anise
> CLOSED: [2014-08-20 Wed 10:29]
>
>
> And only _waiting_ shows as closed, none of these other conditions do -
>
> #+TODO: TODO NEXT IN-PROGRESS NOTES FIXME | WAITING DONE
>
> The conditions are set specifically for this one file, and I've just
> reverted to a previous 'setq org-todo-keyword-faces' and that now shows
> those sections marked as 'DONE' as being closed. 
>
> If I 'C-c C-c' a TODO item, whether showing as "TODO/DONE/whatever" it
> triggers the setting of 'org-tags'! So something is screwy there, but I
> don't know what! But it does not trigger the insertion of "CLOSED:<the-date>"

It probably has to do with the fact that you haven't put a "|" anywhere
so only the WAITING type is one that indicates a completed task?  Look
at the Workflow states section of the manual.

Something like this might work better for you:

   #+TODO: TODO NEXT IN-PROGRESS NOTES FIXME | WAITING DONE

Note the move of DONE to the end and the addition of |.  The important
thing about the move of DONE is not that it be last but that it be
placed after the |.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.1, Org release_8.3beta-246-g77d0da

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

* Re: How to get cookies working with TODOs?
  2014-08-20 10:46   ` Sharon Kimble
  2014-08-20 11:51     ` Eric S Fraga
@ 2014-08-20 12:02     ` Nick Dokos
  2014-08-22 18:29       ` Sharon Kimble
  1 sibling, 1 reply; 7+ messages in thread
From: Nick Dokos @ 2014-08-20 12:02 UTC (permalink / raw)
  To: emacs-orgmode

Sharon Kimble <boudiccas@skimble.plus.com> writes:

>
> ** WAITING Anise
> CLOSED: [2014-08-20 Wed 10:29]
>
>
> And only _waiting_ shows as closed, none of these other conditions do -
>
> #+TODO: TODO DONE NEXT IN-PROGRESS NOTES FIXME WAITING
>
> ...
>
> I think that the problems all stem from my set-up, but I can't see exactly
> where. 
>

That should probably be

#+TODO: TODO NEXT IN-PROGRESS NOTES FIXME WAITING | DONE

See

        (info "(org) TODO keywords as workflow states")

-- 
Nick

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

* Re: How to get cookies working with TODOs?
  2014-08-20 12:02     ` Nick Dokos
@ 2014-08-22 18:29       ` Sharon Kimble
  0 siblings, 0 replies; 7+ messages in thread
From: Sharon Kimble @ 2014-08-22 18:29 UTC (permalink / raw)
  To: Nick Dokos; +Cc: emacs-orgmode

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

Nick Dokos <ndokos@gmail.com> writes:

> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>
>>
>> ** WAITING Anise
>> CLOSED: [2014-08-20 Wed 10:29]
>>
>>
>> And only _waiting_ shows as closed, none of these other conditions do -
>>
>> #+TODO: TODO DONE NEXT IN-PROGRESS NOTES FIXME WAITING
>>
>> ...
>>
>> I think that the problems all stem from my set-up, but I can't see exactly
>> where. 
>>
>
> That should probably be
>
> #+TODO: TODO NEXT IN-PROGRESS NOTES FIXME WAITING | DONE
>
Thanks for this Nick, that's got it all working nicely. Sorry for not
replying sooner but I've been testing things out.

Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.3.93.1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

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

end of thread, other threads:[~2014-08-22 18:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-19 18:28 How to get cookies working with TODOs? Sharon Kimble
2014-08-20  0:19 ` Eric Abrahamsen
2014-08-20  2:52   ` Nick Dokos
2014-08-20 10:46   ` Sharon Kimble
2014-08-20 11:51     ` Eric S Fraga
2014-08-20 12:02     ` Nick Dokos
2014-08-22 18:29       ` Sharon Kimble

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