Thank you, Nicolas. I checked out the latest commits on master. It works.

On the other hand, I am writing a shell script to move each entry's PROPERTIES drawer to its beginning. Though I think elisp can handle this more easily, I am not familiar with it (still learning :-) ). I wonder if there is an existing function or script to do this.

Thanks,

On 8 March 2015 at 03:34, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
Leo He <leodream2008@gmail.com> writes:

> Thanks for your help, Nicolas and kungdash.
> I've tried both 8.2.10 (installing via elpa) and the git repository
> (8.3-beta and master branches), but still the same.

I misunderstood the initial problem. This should be fixed in master.
Thank you.

> * TODO Test_++
> SCHEDULED: <2015-03-02 Mon ++1w>
> - State "DONE"       from "TODO"  [2015-02-23 Mon 10:56]
> - State "DONE"       from "TODO"  [2015-02-15 Sun 10:56]
> - State "DONE"       from "READY" [2015-02-02 Mon 10:56]
> :PROPERTIES:
> :STYLE:    habit
> :LAST_REPEAT: [2015-02-23 Mon 10:56]
> :END:
>
> The Test_+ was marked as DONE one day after 02-09 (did not finish on time)
> and Test_++ missed the 02-09 schedule. But the subsequent schedules are
> DONE on time.

This is not quite true. In the case above, second done stamp bumped
scheduled to 2015-02-16 so last done came one week late.


Regards,