From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Changing TODO status on non-current date Date: Mon, 04 May 2015 09:47:41 +0200 Message-ID: <871tiwkcma.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpB6a-0003QL-8k for emacs-orgmode@gnu.org; Mon, 04 May 2015 03:47:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpB6X-0002N7-2b for emacs-orgmode@gnu.org; Mon, 04 May 2015 03:47:56 -0400 Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:53291) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpB6W-0002Kq-RX for emacs-orgmode@gnu.org; Mon, 04 May 2015 03:47:53 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 56B3E4F607E for ; Mon, 4 May 2015 09:47:51 +0200 (CEST) Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27KJa7a6A4VZ for ; Mon, 4 May 2015 09:47:47 +0200 (CEST) Received: from localhost (unknown [109.232.24.146]) by mail.mojserwer.eu (Postfix) with ESMTPSA id E55C14F607B for ; Mon, 4 May 2015 09:47:46 +0200 (CEST) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-Mode mailing list Hi all, assume that I have a habit (or other TODO headline where the /date/ of converting to DONE is important), and I completed it, say, at 23:30 and forgot to change the status immediately. Is there any way to tell Org that the change was not today, but e.g. yesterday or two days ago etc.? This is especially important with habits, since the date information is then recorded in two places, so changing it manually is a nuisance. I assume that what I'm after could be done with advice and cl-letf-ing current-time and/or current-time-string, but I'm wondering whether someone has it solved already. OTOH, org-todo already has a bunch of prefix argument options (up to triple C-u), so I'd have either to resort to /quadruple/ C-u (not good UI) or something else completely - any ideas? Maybe a /negative/ argument, or just C-- C-c C-t? (Of course, I'd also need doing this from the agenda, so org-agenda-todo might also need some tweaking.) TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University