Move `org-heading-delete-metadata' into "org-list.el"
commit5aaf3dfc7ed1b9fd0054fe4418c6f46befeaf1a8
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 17 Mar 2018 10:32:40 +0000 (17 11:32 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 17 Mar 2018 10:49:16 +0000 (17 11:49 +0100)
tree3a3531779d19d945cbfd9c852b0f75f5818981cb
parent00938bc98bb3ce7d14bdc400ad9f4e0ac9d04d8b
Move `org-heading-delete-metadata' into "org-list.el"

* lisp/org.el (org-heading-delete-metadata): Move to...
* lisp/org-list.el (org-list--delete-metadata): ... here.  Refactor
  code.
(org-toggle-item): Use new function.

* testing/lisp/test-org-list.el (test-org-list/toggle-item): Add test.

At the moment, this function is only used internally in "org-list.el",
so it belongs there.

Also refrain from removing log or clock drawers, because they may not
contain all clocks or notes anyway. Besides, the information they
contain may still make sense in a plain list.
lisp/org-list.el
lisp/org.el
testing/lisp/test-org-list.el