emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Matt Lundin <mdl@imapmail.org>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: org-toggle-checkbox bug
Date: Thu, 24 Feb 2011 18:09:56 -0600	[thread overview]
Message-ID: <AANLkTik4mzUievAJUsLnPXJRs5EH9670pYeVMGPUjTUb@mail.gmail.com> (raw)
In-Reply-To: <87lj15dm7h.fsf@fastmail.fm>


[-- Attachment #1.1: Type: text/plain, Size: 1608 bytes --]

On Thu, Feb 24, 2011 at 5:52 PM, Matt Lundin <mdl@imapmail.org> wrote:

> According to the docstring of org-toggle-checkbox, the function can be
> called on headlines:
>
> ,----
> | If the cursor is in a headline, apply this to all checkbox items
> | in the text below the heading, taking as reference the first item
> | in subtree, ignoring drawers.
> `----
>
> When I call org-toggle-checkbox on the following entry, [I get (shortened
> from your example)]:
>
> --8<---------------cut here---------------start------------->8---
> * Test
>  - [ ] Now
>  - [ ] Not now ---> [x]
>  - [ ] Later ---> [x]
>  - Not yet
>  - Never
> --8<---------------cut here---------------end--------------->8---
>
>  Then if I call org-toggle-checkbox on the headline again, nothing
> happens. The two boxes remain checked.
>
>
Odd; this is not the behavior I get. I just tried on a structure and got
this cycling:
,-----
| * top
| ** next
| *** next
| - [x] item 1  --> [ ]  --> [x]
| - [ ] item 2  --> [ ]  --> [x]
| - [ ] item 3  --> [ ]  --> [x]
| - [ ] item 4  --> [ ]  --> [x]
`-----

So... it seems to be working for me, though I was not sure based on the
docstring whether "taking as reference the first item in subtree" meant it
would toggle the rest to be like it or everything to be the opposite of it.
It appears it's the latter definition.

Maybe provide your version? I'm using 7.4.

Best,
> Matt
>
> _______________________________________________
> 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
>

[-- Attachment #1.2: Type: text/html, Size: 2888 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

  reply	other threads:[~2011-02-25  0:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-24 23:52 org-toggle-checkbox bug Matt Lundin
2011-02-25  0:09 ` John Hendy [this message]
2011-02-25  0:26   ` Nick Dokos
2011-02-25  5:03 ` Nick Dokos
2011-02-25 17:17   ` Nicolas

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=AANLkTik4mzUievAJUsLnPXJRs5EH9670pYeVMGPUjTUb@mail.gmail.com \
    --to=jw.hendy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mdl@imapmail.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).