From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: Re: [Ann] Tool to hack time Date: Wed, 08 Feb 2017 15:47:47 +0100 Message-ID: <84zihwd9ik.fsf@tm6592> References: <84h94b6ywv.fsf@tm6592> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbTXS-0006tg-H6 for emacs-orgmode@gnu.org; Wed, 08 Feb 2017 09:48:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbTXP-0003sF-Ct for emacs-orgmode@gnu.org; Wed, 08 Feb 2017 09:48:06 -0500 Received: from [195.159.176.226] (port=33964 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cbTXP-0003r2-65 for emacs-orgmode@gnu.org; Wed, 08 Feb 2017 09:48:03 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cbTXF-0001Uk-HE for emacs-orgmode@gnu.org; Wed, 08 Feb 2017 15:47:53 +0100 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: emacs-orgmode@gnu.org Hi Stig, Thanks for your feedback! >> https://gitlab.com/marcowahl/hack-time is a little tool to forge the >>[...] >> Comments welcome, as always. > > I gave it a quick spin. The first thing that struck me was sadness at > not finding an elpa package :-( You are right, I think. I'll propose the hack-time code soon as elpa package. Possibly in the form of a minor mode. You are invited to contribute to the realization as package. > Anyway, I obtained it from its repo and I positioned calendar on 7th of > February, and invoked it on an entry I forgot to mark as done yesterday. > This is the result: > > ,---- > | ** TODO Practice guitar > | SCHEDULED: <2017-02-08 Wed ++1d/3d> > | :PROPERTIES: > | :STYLE: habit > | :LAST_REPEAT: [2017-02-08 Tue 12:01] > | :END: > | :LOGBOOK: > | - State "DONE" from "TODO" [2017-02-07 Tue 11:55] \\ > `---- > > Note that: > > - new scheduled time is correct > - logbook entry is correct > - LAST_REPEAT property is *incorrect*; I expect this too to be > [2017-02-07 Tue 11:55] Yes. I also noticed the issue with LAST_REPEAT. I should have told in the announcement that 'hack-time' depends on the Org 'master' branch since about two weeks to handle LAST_REPEAT reliably. Unfortunately 'hack-time' in its current form is not strong enough to hack ANY time in Emacs. Up to now 'hack-time' only applies to elisp code when it calls 'current-time'. Best regards, Marco