From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: missing appointments Date: Thu, 23 Feb 2012 14:43:27 -0500 Message-ID: <11742.1330026207@alphaville> References: <7071.1329987734@alphaville> <87hayhljw8.fsf@mean.albasani.net> <87lintzc6c.fsf@norang.ca> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0eZf-0002R7-I0 for emacs-orgmode@gnu.org; Thu, 23 Feb 2012 14:43:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S0eZe-0000rA-3r for emacs-orgmode@gnu.org; Thu, 23 Feb 2012 14:43:31 -0500 Received: from g4t0017.houston.hp.com ([15.201.24.20]:28750) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0eZd-0000qw-Qx for emacs-orgmode@gnu.org; Thu, 23 Feb 2012 14:43:30 -0500 In-Reply-To: Message from Bernt Hansen of "Thu, 23 Feb 2012 12:34:19 EST." <87lintzc6c.fsf@norang.ca> 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: Bernt Hansen Cc: Memnon Anon , nicholas.dokos@hp.com, emacs-orgmode@gnu.org, carsten.dominik@gmail.com Bernt Hansen wrote: > Memnon Anon writes: > > > Nick Dokos writes: > > > >> ;; wrong > >> (setq org-appt-timer (run-at-time "00:01" nil (function org-agenda-to-appt))) > > [...] > >> o finally, I would like to add a call at midnight every day to > >> recalculate appointments for the next day - unfortunately, the call > >> above is not correct, so for now I do it manually with an > >> org-agenda-redo as above. One of these days I'll get that fixed. If > >> anybody has done that already, I'll gladly steal your code :-) > > > > http://doc.norang.ca/org-mode.html#sec-14-1 > > > > Memnon > > Heh! Even I had to look that up... and it's my document! > > For the list archives I think this is the relevant part of the above > link (since the sec-14-1 is likely to change in the future) > > ; If we leave Emacs running overnight - reset the appointments one minute after midnight > (run-at-time "24:01" nil 'bh/org-agenda-to-appt) > > This originally came from Carsten Dominik years ago ... when I was > setting up my appt for the first time. > > Thanks Carsten! > Thanks, Memnon! And Bernt and Carsten (and also Russell Adams who had it in the hack I mentioned yesterday)! I'm not sure I understand how it works, but I've added it (plus some debugging) and we'll see how it goes: is the "24:01" a relative time or an absolute time? I can't make heads or tails of the run-at-time doc. And what reschedules it for next time? Doesn't the timer fire once (if REPEAT is nil) and then it's done? I remember I had some misconceptions about run-at-time before and these are probably more misconceptions on my part. One of these days, I'll dust the cobwebs out (but they keep returning...) Nick