Re: [O] Check checkbox and move to end of list

2014-01-23 Thread Cecil Westerhof
2014/1/23 Cecil Westerhof > The following function does (mostly) what I want: > (defun dcbl-check-checkbox-and-move-to-end () > (interactive) > (save-excursion > (let* ((struct (org-list-struct)) >(struct-old (copy-tree struct)) >(item

Re: [O] Check checkbox and move to end of list

2014-01-22 Thread Cecil Westerhof
2014/1/23 Cecil Westerhof > (defun dcbl-move-item-to-begin-of-list (&optional item) > (interactive) > (save-excursion > (when item > (goto-char item)) > (org-list-send-item (line-beginning-position) 'begin > (org-list-struct))) > (previous-line)) > > (defun dcbl-move-item-to-e

Re: [O] Check checkbox and move to end of list

2014-01-22 Thread Cecil Westerhof
2014/1/23 Cecil Westerhof > I also think it would be a good idea to change > (org-list-send-item item 'end struct) > to a call to a function. I think it would be useful to have a function to > send a item to the end (or begin) of a list. > I know have the following: (defun dcbl-check-checkbo

[O] Check checkbox and move to end of list

2014-01-22 Thread Cecil Westerhof
The following function does (mostly) what I want: (defun dcbl-check-checkbox-and-move-to-end () (interactive) (save-excursion (let* ((struct (org-list-struct)) (struct-old (copy-tree struct)) (item (line-beginning-position))