From: Cecil Westerhof <cldwesterhof@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Moving checkbox item to end of list when checked
Date: Wed, 22 Jan 2014 15:26:41 +0100 [thread overview]
Message-ID: <CAG-LmmCtRJcPBCS5XkFzz5vyWVpe2etiVxaqT3BAsaDptBETtA@mail.gmail.com> (raw)
In-Reply-To: <CAG-LmmCfTwctZLK-73B8DWKWvZZkAskOqbDjKHuYi1rfek5i0Q@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1158 bytes --]
2014/1/22 Cecil Westerhof <cldwesterhof@gmail.com>
> >> 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.
>
>
It looks that it goes well also when the list is deeper.
I need to do the following things:
- check that I am on an element of a list
- check that it is a checkbox
- check that it is not checked
I
f I see it correctly this can all be done with (org-list-struct). I'll
work it out.
--
Cecil Westerhof
[-- Attachment #2: Type: text/html, Size: 2555 bytes --]
prev parent reply other threads:[~2014-01-22 14:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-22 11:27 Moving checkbox item to end of list when checked Cecil Westerhof
2014-01-22 12:16 ` Thorsten Jolitz
2014-01-22 14:58 ` Nicolas Goaziou
2014-01-22 15:23 ` Thorsten Jolitz
2014-01-22 13:36 ` Bastien
2014-01-22 14:06 ` Nicolas Goaziou
2014-01-22 14:12 ` Cecil Westerhof
2014-01-22 14:26 ` Cecil Westerhof [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAG-LmmCtRJcPBCS5XkFzz5vyWVpe2etiVxaqT3BAsaDptBETtA@mail.gmail.com \
--to=cldwesterhof@gmail.com \
--cc=emacs-orgmode@gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.