From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stig Brautaset Subject: Re: mark as done on a previous date? Date: Fri, 30 Dec 2016 16:38:24 +0000 Message-ID: References: <84eg0p7gw3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cN0CS-000883-M3 for emacs-orgmode@gnu.org; Fri, 30 Dec 2016 11:38:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cN0CP-00025t-IT for emacs-orgmode@gnu.org; Fri, 30 Dec 2016 11:38:36 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:44083) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cN0CP-00025V-CA for emacs-orgmode@gnu.org; Fri, 30 Dec 2016 11:38:33 -0500 In-reply-to: <84eg0p7gw3.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Marco Wahl Cc: emacs-orgmode@gnu.org Marco Wahl writes: > Hi! > >> I'm trying to use org-habit to track my habits and sometimes I don't >> get around to mark stuff as done on the day I do them. I've found two >> different functions for marking stuff as done in the past, but I can't >> get either of them to work. >> [...] [...] Interesting. I couldn't get yours to work as I expected either, and decided to try =org-todo-yesterday=, and couldn't get _that_ to work as I expected either, which I thought was strange so I dug a bit deeper. I tested with =emacs -q foo.org= and added the following entry (I did this on the 30th of December): ,---- | * TODO Testing 123 | SCHEDULED: <2016-12-27 Tue .+1m> | :PROPERTIES: | :STYLE: habit | :END: `---- After using =org-todo-yesterday= I ended up with: ,---- | * TODO Testing 123 | SCHEDULED: <2017-01-29 Sun .+1m> | - State "DONE" from "TODO" [2016-12-30 Fri 16:29] | :PROPERTIES: | :STYLE: habit | :LAST_REPEAT: [2016-12-30 Fri 16:29] | :END: `---- I now see (finally!) that the *re-scheduling* works as I would expect, but the LAST_REPEAT and state change logging still uses the actual time. I would have expected both those to use the 29th rather than the 30th as well. Perhaps this is just my expectation that needs adjusting, but this breaks org-habit's graphing of my consistency. Perhaps I just have to get in the habit of ticking stuff off on the day I do them... :-) Stig