>>>>> Nicolas Goaziou writes: NG> Hello, swflint@flintfam.org (Samuel W. Flint) writes: >> I use habits, and until recently, there was a problem with habit >> repeaters. Now that this is fixed, there's a new problem. When I >> try to set a habit's TODO state to DONE, aside from correctly setting >> the SCHEDULED line, and the TODO state back to TODO, the logging is >> done incorrectly. >> >> The buffer starts out as so: * TODO Weekly Review SCHEDULED: >> <2016-01-17 Sun .+1w/2w> :PROPERTIES: :STYLE: habit :CREATED: >> <2015-12-21 Mon 17:42> :LAST_REPEAT: [2016-01-10 Sun 19:23] :END: - >> State "DONE" from "TODO" [2016-01-10 Sun 19:23] - State "DONE" from >> "TODO" [2016-01-02 Sat 00:05] - State "DONE" from "TODO" [2015-12-29 >> Tue 18:22] >> >> When I run C-c C-t d on the headline, changing the TODO state to >> DONE, the following occurs: >> >> - State "DONE" from "TODO" [2016-01-10 Sun 19:34] * TODO Weekly >> Review SCHEDULED: <2016-01-17 Sun .+1w/2w> :PROPERTIES: :STYLE: habit >> :CREATED: <2015-12-21 Mon 17:42> :LAST_REPEAT: [2016-01-10 Sun 19:34] >> :END: - State "DONE" from "TODO" [2016-01-10 Sun 19:23] - State >> "DONE" from "TODO" [2016-01-02 Sat 00:05] - State "DONE" from "TODO" >> [2015-12-29 Tue 18:22] >> >> I have no idea why this is. NG> FWIW I cannot reproduce it. Could you try again with a minimal NG> configuration? Sure, with emacs -q -Q, the same thing happens. I also get the following error: Error in post-command-hook (org-add-log-note): (error "Before first headline at position 1 in buffer test.org") I have absolutely no idea why this happens. NG> Regards, NG> -- Nicolas Goaziou Thanks, Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s