Hi, I've noticed that org-add-planning-info adds a superfluous space character when a repeated task is marked as DONE and gets rescheduled.
Example: * TODO foo SCHEDULED: <2011-08-08 Mon +1d> This becomes (after pressing Shift-Right a few times): * TODO foo SCHEDULED: <2011-08-09 Tue +1d> :LOGBOOK: - State "DONE" from "WAITING" [2011-08-08 Mon 15:33] :END: :PROPERTIES: :LAST_REPEAT: [2011-08-08 Mon 15:33] :END: Note the additional space character before "SCHEDULED". I've attached a patch that seems to fix this issue. Best regards, Valentin
diff --git a/lisp/org.el b/lisp/org.el index 11eaf78..d2fb343 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -11914,7 +11914,7 @@ be removed." (re-search-forward org-closed-time-regexp nil t))) (replace-match "") (if (looking-at "--+<[^>]+>") (replace-match "")))) - (and (looking-at "^[ \t]+") (replace-match "")) + (and (looking-at "[ \t]+") (replace-match "")) (and org-adapt-indentation (bolp) (org-indent-to-column col)) (when what (insert