Preserve hierarchy when converting items to headlines and the other way
commit713262edc1ba3703e60967873e202a1f09ba3789
authorNicolas Goaziou <n.goaziou@gmail.com>
Sat, 12 Feb 2011 15:42:42 +0000 (12 16:42 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Fri, 18 Feb 2011 12:43:49 +0000 (18 13:43 +0100)
treeb0d1f4b529735a7dda9f10e17834ee41c3e8022d
parentde3d3652bb4ebea4d794db9ae9394af7c28fd9db
Preserve hierarchy when converting items to headlines and the other way

* lisp/org.el (org-toggle-item, org-toggle-heading): make sure every
  sub-item in a list is changed into a sub-heading and sub-headings
  are translated into sub-items. Also ignore inline tasks in the
  process.

org-toggle-item on headlines preserves hierarchy
lisp/org.el