emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* incorrect checkbox statistics
@ 2010-01-08 12:29 Manish
  2010-01-28 14:06 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Manish @ 2010-01-08 12:29 UTC (permalink / raw)
  To: Org-Mode

Hello Carsten,

The inconsistency between TODO and list statistics works now.  Thanks!

Statistics cookie updates still have some quirks.  In "Heading 1", the
cookie shows whatever is the value in the cookie for "item 1"
irrespective of the number of items in the list or the cookie position
(even COOKIE_DATA recursive is ignored, e.g. Heading 3)  "Heading 4"
works perfectly only if the leading cookie for first item does not use
[/] or [%].  Hope these various combination are of some help.

--8<---------------cut here---------------start------------->8---
* Heading 1 [1/4]
  1. [1/4] item 1
     1. [X] item 1.1
     2. [ ] item 1.2
     3. [ ] item 1.3
     4. [ ] item 1.4
  2. [0/2] item 2
     1. [ ] item 2.1
     2. [ ] item 2.2
  3. [0/2] item 3
     1. [ ] item 3.1
     2. [ ] item 3.2

* Heading 2 [0/4]
  1. item 1 [0/4]
     1. [ ] item 1.1
     2. [ ] item 1.2
     3. [ ] item 1.3
     4. [ ] item 1.4
  2. [0/2] item 2
     1. [ ] item 2.1
     2. [ ] item 2.2
  3. [0/2] item 3
     1. [ ] item 3.1
     2. [ ] item 3.2

* Heading 3 [3/4]
  :PROPERTIES:
  :COOKIE_DATA: recursive
  :END:
  1. [3/4] item 1
     1. [ ] item 1.1
     2. [X] item 1.2
     3. [X] item 1.3
     4. [X] item 1.4
  2. [0/2] item 2
     1. [ ] item 2.1
     2. [ ] item 2.2
  3. [0/2] item 3
     1. [ ] item 3.1
     2. [ ] item 3.2

* Heading 4 [2/9]
  :PROPERTIES:
  :COOKIE_DATA: recursive
  :END:
  1. [-] item 1 [2/4]
     1. [X] item 1.1
     2. [X] item 1.2
     3. [-] item 1.3
     4. [ ] item 1.4
  2. [0/2] item 2
     1. [ ] item 2.1
     2. [ ] item 2.2
  3. [0/2] item 3
     1. [ ] item 3.1
     2. [ ] item 3.2


--8<---------------cut here---------------end--------------->8---

Regards
-- 
Manish

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

* Re: incorrect checkbox statistics
  2010-01-08 12:29 incorrect checkbox statistics Manish
@ 2010-01-28 14:06 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-01-28 14:06 UTC (permalink / raw)
  To: Manish; +Cc: Org-Mode


On Jan 8, 2010, at 1:29 PM, Manish wrote:

> Hello Carsten,
>
> The inconsistency between TODO and list statistics works now.  Thanks!
>
> Statistics cookie updates still have some quirks.  In "Heading 1", the
> cookie shows whatever is the value in the cookie for "item 1"
> irrespective of the number of items in the list or the cookie position
> (even COOKIE_DATA recursive is ignored, e.g. Heading 3)  "Heading 4"
> works perfectly only if the leading cookie for first item does not use
> [/] or [%].  Hope these various combination are of some help.

Hi Manish,

these are useful examples, but I find it too complex to fix - this  
might need a complete rewrite of the statistics code - and I don't  
have the time and concentration for this.  Part of the complexity is  
the intermingling of TODO and checkboxes, which makes this a  
complicated logic.

I keep this in my list of things to look at if I am bored, but it is  
not likely to be fixed any time soon.

Patches - on the other hand - are always welcome! :-)

- Carsten

>
> --8<---------------cut here---------------start------------->8---
> * Heading 1 [1/4]
>  1. [1/4] item 1
>     1. [X] item 1.1
>     2. [ ] item 1.2
>     3. [ ] item 1.3
>     4. [ ] item 1.4
>  2. [0/2] item 2
>     1. [ ] item 2.1
>     2. [ ] item 2.2
>  3. [0/2] item 3
>     1. [ ] item 3.1
>     2. [ ] item 3.2
>
> * Heading 2 [0/4]
>  1. item 1 [0/4]
>     1. [ ] item 1.1
>     2. [ ] item 1.2
>     3. [ ] item 1.3
>     4. [ ] item 1.4
>  2. [0/2] item 2
>     1. [ ] item 2.1
>     2. [ ] item 2.2
>  3. [0/2] item 3
>     1. [ ] item 3.1
>     2. [ ] item 3.2
>
> * Heading 3 [3/4]
>  :PROPERTIES:
>  :COOKIE_DATA: recursive
>  :END:
>  1. [3/4] item 1
>     1. [ ] item 1.1
>     2. [X] item 1.2
>     3. [X] item 1.3
>     4. [X] item 1.4
>  2. [0/2] item 2
>     1. [ ] item 2.1
>     2. [ ] item 2.2
>  3. [0/2] item 3
>     1. [ ] item 3.1
>     2. [ ] item 3.2
>
> * Heading 4 [2/9]
>  :PROPERTIES:
>  :COOKIE_DATA: recursive
>  :END:
>  1. [-] item 1 [2/4]
>     1. [X] item 1.1
>     2. [X] item 1.2
>     3. [-] item 1.3
>     4. [ ] item 1.4
>  2. [0/2] item 2
>     1. [ ] item 2.1
>     2. [ ] item 2.2
>  3. [0/2] item 3
>     1. [ ] item 3.1
>     2. [ ] item 3.2
>
>
> --8<---------------cut here---------------end--------------->8---
>
> Regards
> -- 
> Manish
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

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

end of thread, other threads:[~2010-01-28 14:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-08 12:29 incorrect checkbox statistics Manish
2010-01-28 14:06 ` Carsten Dominik

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