From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Kanis Subject: Re: random weekly event Date: Wed, 16 Jul 2014 20:42:11 +0200 Message-ID: <87fvi1m9h8.fsf@kanis.fr> References: <877g3e9yzc.fsf@kanis.fr> <87bnsq1dyg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7U9l-0000FD-AJ for emacs-orgmode@gnu.org; Wed, 16 Jul 2014 14:42:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7U9f-0000FV-Hp for emacs-orgmode@gnu.org; Wed, 16 Jul 2014 14:42:21 -0400 Received: from kanis.fr ([46.19.35.252]:40999 helo=srv2.kanis.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7U9f-0000D2-2r for emacs-orgmode@gnu.org; Wed, 16 Jul 2014 14:42:15 -0400 In-Reply-To: <87bnsq1dyg.fsf@gmail.com> (Thorsten Jolitz's message of "Tue, 15 Jul 2014 23:58:47 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Thorsten Jolitz Cc: emacs-orgmode@gnu.org July, 15 at 23:58 Thorsten Jolitz wrote: > Ivan Kanis writes: > >> I need to have org agenda (and then appt) manage an event once a week. >> The catch is that is should happen at a random day and hour. >> >> My thinking is that populating programmatically a year entry is probably >> the sanest way to go about it. >> >> Has anyone else done it? > > This is not an arcane scientific solution, but should give a random > timestamp for between tomorrow and the end of the current week. You > could write a function (using run-with-timer) that runs this sunday at > 00:00h and inserts a todo item with the returned timestamp into an > agenda file: Hi Thorsten, Thanks it will get me there when I will write it. I turn off emacs at home and at work so the run-with-timer will not work. Take care, Ivan -- Hard drive sleeping. Let it wake up on it's own... -- BOFH excuse #43