From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cecil Westerhof Subject: Re: Moving checkbox item to end of list when checked Date: Wed, 22 Jan 2014 15:12:34 +0100 Message-ID: References: <87wqhsi1f5.fsf@bzg.ath.cx> <87fvogw1pj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b6d7e0a5c71cc04f08fb706 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5yYC-0004Ds-Mg for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 09:13:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5yXi-00026D-LZ for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 09:13:04 -0500 Received: from mail-qc0-x22b.google.com ([2607:f8b0:400d:c01::22b]:49838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5yXi-000268-GV for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 09:12:34 -0500 Received: by mail-qc0-f171.google.com with SMTP id n7so516186qcx.30 for ; Wed, 22 Jan 2014 06:12:34 -0800 (PST) In-Reply-To: <87fvogw1pj.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --047d7b6d7e0a5c71cc04f08fb706 Content-Type: text/plain; charset=ISO-8859-1 2014/1/22 Nicolas Goaziou > >> but I would like to get: > >> * Actions > >> - [ ] B > >> - [ ] C > >> - [X] A > >> > >> Is this possible? > > > > `C-c ^ x' to sort the list by checkbox status. > > > > But this is an additional step after ticking the checkbox. > > > >> If not I could write an alias for it I think. Is there a command for > >> going to the end of the list? > > > > Not a command, but an internal function you can explore: > > `org-list-get-list-end'. > > I think that the higher-level function `org-list-send-item' would be > useful too: > > (org-list-send-item (line-beginning-position) 'end (org-list-struct)) > In a simple case this does exactly what I want. I have to check what happens if it is several layers deep, but it looks certainly very promising. Thanks. -- Cecil Westerhof --047d7b6d7e0a5c71cc04f08fb706 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
2014= /1/22 Nicolas Goaziou <n.goaziou@gmail.com>
>> but I would like to get:
>> * Actions
>> =A0 - [ ] B
>> =A0 - [ ] C
>> =A0 - [X] A
>>
>> Is this possible?
>
> `C-c ^ x' to sort the list by checkbox status.
>
> But this is an additional step after ticking the checkbox.
>
>> If not I could write an alias for it I think. Is there a command f= or
>> going to the end of the list?
>
> Not a command, but an internal function you can explore:
> `org-list-get-list-end'.

I think that the higher-level function `org-list-send-item'= would be
useful too:

=A0 (org-list-send-item (line-beginning-position) 'end (org-list-struct= ))

In a simple case this does exactly= what I want. I have to check what happens if it is several layers deep, bu= t it looks certainly very promising. Thanks.
=A0

--
Cecil Westerhof
--047d7b6d7e0a5c71cc04f08fb706--