From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-toggle-checkbox bug Date: Thu, 24 Feb 2011 19:26:52 -0500 Message-ID: <6119.1298593612@alphaville> References: <87lj15dm7h.fsf@fastmail.fm> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=39388 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PslWJ-00070x-W6 for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 19:26:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PslWI-0003F8-BP for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 19:26:55 -0500 Received: from g4t0015.houston.hp.com ([15.201.24.18]:26072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PslWI-0003Ex-5N for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 19:26:54 -0500 In-Reply-To: Message from John Hendy of "Thu\, 24 Feb 2011 18\:09\:56 CST." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: Matt Lundin , Org Mode , nicholas.dokos@hp.com John Hendy wrote: > On Thu, Feb 24, 2011 at 5:52 PM, Matt Lundin wrote: >=20 > According to the docstring of org-toggle-checkbox, the function can be > called on headlines: >=20=20=20=20 > ,---- > | 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. > `---- >=20=20=20=20 > When I call org-toggle-checkbox on the following entry, [I get (short= ened from your example)]: >=20=20=20=20 > --8<---------------cut here---------------start------------->8--- > * Test > =C2=A0- [ ] Now > =C2=A0- [ ] Not now ---> [x] > =C2=A0- [ ] Later ---> [x] > =C2=A0- Not yet > =C2=A0- Never > --8<---------------cut here---------------end--------------->8--- >=20=20=20=20 > =C2=A0Then if I call org-toggle-checkbox on the headline again, nothi= ng > happens. The two boxes remain checked. >=20 > Odd; this is not the behavior I get. I just tried on a structure and got = this cycling: > ,----- > | * top > | ** next > | *** next > | - [x] item 1 =C2=A0--> [ ] =C2=A0--> [x]=C2=A0=C2=A0 > | - [ ] item 2 =C2=A0--> [ ] =C2=A0--> [x] > | - [ ] item 3 =C2=A0--> [ ] =C2=A0--> [x] > | - [ ] item 4 =C2=A0--> [ ] =C2=A0--> [x] > `----- >=20 > So... it seems to be working for me, though I was not sure based on the d= ocstring whether "taking as reference the first item=C2=A0in 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. >=20 > Maybe provide your version? I'm using 7.4. >=20 Not working for me: I can reproduce the behavior that Matt reported. Org-mode version 7.4 (release_7.4.529.gb23d.dirty) Nick