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:12:34 +0100 [thread overview]
Message-ID: <CAG-LmmCfTwctZLK-73B8DWKWvZZkAskOqbDjKHuYi1rfek5i0Q@mail.gmail.com> (raw)
In-Reply-To: <87fvogw1pj.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 838 bytes --]
2014/1/22 Nicolas Goaziou <n.goaziou@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.
--
Cecil Westerhof
[-- Attachment #2: Type: text/html, Size: 1443 bytes --]
next prev parent reply other threads:[~2014-01-22 14:13 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 [this message]
2014-01-22 14:26 ` Cecil Westerhof
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=CAG-LmmCfTwctZLK-73B8DWKWvZZkAskOqbDjKHuYi1rfek5i0Q@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 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).