emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Checklist bug in version 7.9.3a
@ 2013-01-14 15:35 Robert Horn
  2013-01-14 19:24 ` Nicolas Goaziou
  2013-01-22 14:22 ` Bastien
  0 siblings, 2 replies; 4+ messages in thread
From: Robert Horn @ 2013-01-14 15:35 UTC (permalink / raw)
  To: Org-mode

There is a bug in checklist handling.  The following list will show the problem.

    1. [ ] Use Cases
    2. [ ] Threat Model
    3. [ ] ITI Wiki
    4. [ ] Maynard stuff
    5. [ ] Annual Transition
      - wiki changes
      - ftp changes

Context:

Org-mode version 7.9.3a (release_7.9.3a @ /home/hornrj/.emacs.d/src/org-mode/lisp/)

Git commit 4cac751536e9e75f822fae18d75de6df694c8f6f

GNU Emacs 24.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-11-08 on lakoocha, modified by Debian

How to reproduce:

If you go to the first line in the list of check boxes, line "Use Cases", and use "C-u C-u C-c C-c", it will set all of the checkboxes in the list to partial "[-]".  If you try it again you get the error "user-error: Cannot toggle this checkbox (uncheccked subitems?)".  If the checkbox has an "[X]" for complete, "C-u C-u C-c C-c" will also set the entire list to partial.

This only occurs for the first item on a checkbox list.  "C-u C-u C-c C-c" behaves properly for all the other items.

I suspect a context confusion, since the bulk change to "[-]" also changes the indent level for the two non-checkbox items in the list below item 5.

R Horn
rjhorn@alum.mit.edu

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

* Re: Checklist bug in version 7.9.3a
  2013-01-14 15:35 Checklist bug in version 7.9.3a Robert Horn
@ 2013-01-14 19:24 ` Nicolas Goaziou
  2013-01-14 23:27   ` Robert Horn
  2013-01-22 14:22 ` Bastien
  1 sibling, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2013-01-14 19:24 UTC (permalink / raw)
  To: Robert Horn; +Cc: Org-mode

Hello,

Robert Horn <rjhorn@alum.mit.edu> writes:

> There is a bug in checklist handling.  The following list will show the problem.
>
>     1. [ ] Use Cases
>     2. [ ] Threat Model
>     3. [ ] ITI Wiki
>     4. [ ] Maynard stuff
>     5. [ ] Annual Transition
>       - wiki changes
>       - ftp changes
>
> Context:
>
> Org-mode version 7.9.3a (release_7.9.3a @ /home/hornrj/.emacs.d/src/org-mode/lisp/)
>
> Git commit 4cac751536e9e75f822fae18d75de6df694c8f6f
>
> GNU Emacs 24.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-11-08 on lakoocha, modified by Debian
>
> How to reproduce:
>
> If you go to the first line in the list of check boxes, line "Use Cases", and use "C-u C-u C-c C-c", it will set all of the checkboxes in the list to partial "[-]".  If you try it again you get the error "user-error: Cannot toggle this checkbox (uncheccked subitems?)".  If the checkbox has an "[X]" for complete, "C-u C-u C-c C-c" will also set the entire list to partial.
>
> This only occurs for the first item on a checkbox list.  "C-u C-u C-c C-c" behaves properly for all the other items.
>
> I suspect a context confusion, since the bulk change to "[-]" also changes the indent level for the two non-checkbox items in the list below item 5.

Calling C-c C-c with an argument on the first item of a list or sub-list
will apply the change on every item in the list. It looks consistent
with what you get.

What did you expect instead ?


Regards,

-- 
Nicolas Goaziou

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

* Re: Checklist bug in version 7.9.3a
  2013-01-14 19:24 ` Nicolas Goaziou
@ 2013-01-14 23:27   ` Robert Horn
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Horn @ 2013-01-14 23:27 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org-mode

Nicolas Goaziou <n.goaziou@gmail.com> writes:


> Calling C-c C-c with an argument on the first item of a list or sub-list
> will apply the change on every item in the list. It looks consistent
> with what you get.
>
> What did you expect instead ?
>

I was expecting the single checklist item to go to "[-]".  On all other
items of a checklist "C-u C-u C-c C-c" causes the item to be changed to
"[-]".  That's the behavior described in section 5.6 for checkboxes.  

In 2.7 Plain Lists, it says C-c C-c toggles the state of a checkbox (if
any).  There is no mention of arguments.  

R Horn

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

* Re: Checklist bug in version 7.9.3a
  2013-01-14 15:35 Checklist bug in version 7.9.3a Robert Horn
  2013-01-14 19:24 ` Nicolas Goaziou
@ 2013-01-22 14:22 ` Bastien
  1 sibling, 0 replies; 4+ messages in thread
From: Bastien @ 2013-01-22 14:22 UTC (permalink / raw)
  To: Robert Horn; +Cc: Org-mode

Hi Robert,

Robert Horn <rjhorn@alum.mit.edu> writes:

> If you go to the first line in the list of check boxes, line "Use
> Cases", and use "C-u C-u C-c C-c", it will set all of the checkboxes
> in the list to partial "[-]".  If you try it again you get the error
> "user-error: Cannot toggle this checkbox (uncheccked subitems?)".

Fixed in master, thanks.

-- 
 Bastien

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

end of thread, other threads:[~2013-01-22 14:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-14 15:35 Checklist bug in version 7.9.3a Robert Horn
2013-01-14 19:24 ` Nicolas Goaziou
2013-01-14 23:27   ` Robert Horn
2013-01-22 14:22 ` Bastien

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