From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: dynamic date arithmetic in a macro or otherwise (simulating a "date counter")? Date: Tue, 22 Aug 2017 21:40:14 -0500 Message-ID: <87ziarj9bl.fsf@alphapapa.net> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkLat-0006Jb-75 for emacs-orgmode@gnu.org; Tue, 22 Aug 2017 22:40:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkLaq-00082o-5S for emacs-orgmode@gnu.org; Tue, 22 Aug 2017 22:40:35 -0400 Received: from [195.159.176.226] (port=50868 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dkLap-0007zk-UX for emacs-orgmode@gnu.org; Tue, 22 Aug 2017 22:40:32 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dkLag-000821-1q for emacs-orgmode@gnu.org; Wed, 23 Aug 2017 04:40:22 +0200 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 I just discovered this yesterday, and it seems relevant: https://github.com/abo-abo/tiny Apparently it can be used like this: m\n8|**** TODO Learning from Data Week %(+ x 2) \nSCHEDULED: <%(date "Oct 7" (* x 7))> DEADLINE: <%(date "Oct 14" (* x 7))> Which results in: **** TODO Learning from Data Week 2 SCHEDULED: <2013-10-07 Mon> DEADLINE: <2013-10-14 Mon> **** TODO Learning from Data Week 3 SCHEDULED: <2013-10-14 Mon> DEADLINE: <2013-10-21 Mon> [...]