org-clock: Fix `org-clock-remove-empty-clock-drawer'
commit2d62c0e173dabc4ef1eb5172ceae32407e6049be
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 1 Sep 2015 08:29:33 +0000 (1 10:29 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 1 Sep 2015 08:29:33 +0000 (1 10:29 +0200)
tree039b0600b59dac0ef1e48046fc71e0c9e84b966a
parent1dbb25f55199fec789454f85b08e2a1889050e79
org-clock: Fix `org-clock-remove-empty-clock-drawer'

* lisp/org-clock.el (org-clock-drawer-name): New function.
(org-clock-find-position): Use new function.
(org-clock-remove-empty-clock-drawer): Remove drawer actually used for
clocks, which may be different from the one used for storing notes.
Also, consider that headlines could use different drawer names in the
same tree.
lisp/org-clock.el