org-list: interactive tools use new structures
commitaf8da7965cad927af4307a57fbc99f42e7b164f3
authorNicolas Goaziou <n.goaziou@gmail.com>
Thu, 23 Dec 2010 23:53:30 +0000 (24 00:53 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Fri, 18 Feb 2011 11:45:08 +0000 (18 12:45 +0100)
tree66743e8def1f5379b153cc2b10e03a172749fb5c
parentd48a6cf50dad3a61bf75ae28582a1aa3ec28e1ae
org-list: interactive tools use new structures

* org-list.el (org-list-repair): removed optional argument
  FORCE-BULLET. The job of this interactive function is to completely
  fix a list at point. Changing bullets is a separate task. Also
  removed others optional arguments TOP and BOTTOM to follow the new
  structures.
(org-list-indent-item-generic): remove need for TOP and BOTTOM. STRUCT
is a new required argument. This avoids computing a list structure
many times when function is called more than once in a row, for
example in org-cycle-item-indentation. Use new accessors. Now, also
call `org-update-checkbox-count-maybe'.
(org-outdent-item,org-indent-item,org-outdent-item-tree,org-indent-item-tree):
remove need for TOP and BOTTOM.
(org-list-insert-item-generic): reflect changes to `org-list-repair'.
(org-list-exchange-items): use new accessors. Now modify struct to
avoid re-reading it later.
(org-move-item-down): reflect changes to `org-list-repair'. Use new
accessors.
(org-move-item-up): reflect changes to `org-list-repair'. Use new
accessors.
(org-cycle-list-bullet): use new structures. Also use a shortcut to
`org-list-struct-fix-struct' in order to avoid unnecessary fixes, like
`org-list-struct-fix-box'
(org-sort-list): use of new structures. Renamed an internal function
for a little more clarity.
(org-cycle-item-indentation): remove dependency on org-list-repair.
Use new accessors.
(org-list-get-child): correct bug when asking for the child of the
last item
(org-list-exchange-items): use new accessors.
lisp/org-list.el