Clocking: Make insertion of the CLOCK drawer safer
commit621bafc1b5a39f6fb3b924ccde15e4dfd1b5c449
authorCarsten Dominik <carsten.dominik@gmail.com>
Wed, 11 Feb 2009 13:41:22 +0000 (11 14:41 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Wed, 11 Feb 2009 13:41:22 +0000 (11 14:41 +0100)
tree189c6422bd8757d2e38380f9c35c9fa193474888
parent0e99f8bed628c4f87ec25990159cd5c7204e8cea
Clocking: Make insertion of the CLOCK drawer safer

Daniel Clemente noticed that the clock drawer, when it is created for
the second clock entry, will swallow a plain list item after it,
because it thinks it might be a clock note.

This commit makes this function check for indentation.  If the plain
list item is indented less than the last clock line, it will be
assumed that it does not belong to the clocking line, and the drawer
will not swallow the item.
lisp/ChangeLog
lisp/org-clock.el