From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: org-toggle-checkbox bug Date: Thu, 24 Feb 2011 18:09:56 -0600 Message-ID: References: <87lj15dm7h.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0022837161==" Return-path: Received: from [140.186.70.92] (port=58413 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PslFw-0006Do-SL for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 19:10:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PslFv-0000Zb-MQ for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 19:10:00 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:52864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PslFv-0000ZV-6o for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 19:09:59 -0500 Received: by bwz17 with SMTP id 17so1870355bwz.0 for ; Thu, 24 Feb 2011 16:09:58 -0800 (PST) In-Reply-To: <87lj15dm7h.fsf@fastmail.fm> 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: Matt Lundin Cc: Org Mode --===============0022837161== Content-Type: multipart/alternative; boundary=001636c5982b70942c049d1026c9 --001636c5982b70942c049d1026c9 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Feb 24, 2011 at 5:52 PM, Matt Lundin 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 > --001636c5982b70942c049d1026c9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
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 f= rom your example)]:

--8<---------------cut here---------------start------------->8---
* Test
=A0- [ ] Now
=A0- [ ] Not now ---> [x]
=A0- [ ] Later ---> [x]
=A0- Not yet
=A0- Never
--8<---------------cut here---------------end--------------->8---

=A0Then 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 = =A0--> [ ] =A0--> [x]=A0=A0
| - [ ] item 2 =A0--> [ ] =A0--> [x]
| - [ ] item 3 =A0--> [ ] =A0--> [x]
| - [ ] item 4 =A0--> [= ] =A0--> [x]
`-----

So... it seems to be working for me, thoug= h I was not sure based on the docstring whether "taking as reference t= he first item=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 d= efinition.

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

--001636c5982b70942c049d1026c9-- --===============0022837161== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0022837161==--