Re: [O] C-c ^ for plain lists? Why not?

2012-12-28 Thread Bastien
Hi James, sorry, I copied the wrong function's name and my message was wrong. What I meant is this: you need to call `org-sort-list-by-checkbox-type' *directly* on the list you want to sort -- not after `C-c ^ f'. `C-c ^ f org-sort-list-by-checkbox-type RET' will end up in loop because org-sort-

Re: [O] C-c ^ for plain lists? Why not?

2012-12-28 Thread James Harkins
On Dec 29, 2012 1:40 AM, "Bastien" wrote: > > > > 1. C-c ^ f org-sort-list-by-checkbox-type > > 2. This puts the done items at the top, which I didn't want, so... C-c ^ F org- > > sort-list-by-checkbox-type. > > 3. Emacs goes into a tailspin (recovered by C-g). > > `org-list-get-item-end-before-bl

Re: [O] C-c ^ for plain lists? Why not?

2012-12-28 Thread Bastien
Hi James, James Harkins writes: > I finally had a chance to play with this -- works nicely, except I managed to > get emacs into an infinite loop this way: > > 1. C-c ^ f org-sort-list-by-checkbox-type > 2. This puts the done items at the top, which I didn't want, so... C-c ^ F > org- > sort-l

Re: [O] C-c ^ for plain lists? Why not?

2012-12-27 Thread James Harkins
Carsten Dominik gmail.com> writes: > Playing with this idea I noticed that the sorting function > did not accept their additional arguments like sorting-key > and get key-function in they way they should. So I patched > them, to make the following work in the current master: > > (defun org-sort

Re: [O] C-c ^ for plain lists? Why not?

2012-10-27 Thread Bastien
Carsten Dominik writes: > I would think that > > checked - transitionary - unchecked - no box > > is a pretty decent default. +1 > (defun org-sort-list-by-checkbox-type () > "Sort list items according to Checkbox state." > (interactive) > (org-sort-list >nil ?f >(lambda

Re: [O] C-c ^ for plain lists? Why not?

2012-10-11 Thread François Pinard
James Harkins writes: > But I'm running into the limitation that plain lists can't be sorted > *by their checklist status*. You can sort alphabetically, numerically > or by time or function. Hi, Org people. Just quickly perusing this list, this message reminds me of an old annoyance in Org sor

Re: [O] C-c ^ for plain lists? Why not?

2012-10-09 Thread Carsten Dominik
On 8.10.2012, at 20:25, Nicolas Goaziou wrote: > Hello, > > James Harkins writes: > >> I've started to like checklists because they are a good way to keep >> account of things that have to be done, without the individual items >> being entered into the agenda (and thus transferred to MobileOrg

Re: [O] C-c ^ for plain lists? Why not?

2012-10-08 Thread James Harkins
On Oct 9, 2012 2:29 AM, "Nicolas Goaziou" wrote: > There are four states: checked box, unchecked box, transitory box and no > box at all. I can't see an order that should be prevalent over others. Fair enough, thanks. I'll check the org manual later to see if the format of the function is documen

Re: [O] C-c ^ for plain lists? Why not?

2012-10-08 Thread Nicolas Goaziou
Hello, James Harkins writes: > I've started to like checklists because they are a good way to keep > account of things that have to be done, without the individual items > being entered into the agenda (and thus transferred to MobileOrg). > > But I'm running into the limitation that plain lists

[O] C-c ^ for plain lists? Why not?

2012-10-08 Thread James Harkins
I've started to like checklists because they are a good way to keep account of things that have to be done, without the individual items being entered into the agenda (and thus transferred to MobileOrg). But I'm running into the limitation that plain lists can't be sorted *by their checklist st