From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: missing appointments Date: Thu, 23 Feb 2012 12:34:19 -0500 Message-ID: <87lintzc6c.fsf@norang.ca> References: <7071.1329987734@alphaville> <87hayhljw8.fsf@mean.albasani.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0cYv-0005c9-Ag for emacs-orgmode@gnu.org; Thu, 23 Feb 2012 12:34:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S0cYo-0000gG-F3 for emacs-orgmode@gnu.org; Thu, 23 Feb 2012 12:34:37 -0500 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:50565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0cYo-0000es-DD for emacs-orgmode@gnu.org; Thu, 23 Feb 2012 12:34:30 -0500 In-Reply-To: <87hayhljw8.fsf@mean.albasani.net> (Memnon Anon's message of "Thu, 23 Feb 2012 14:14:06 +0000 (UTC)") 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: Memnon Anon Cc: emacs-orgmode@gnu.org, carsten.dominik@gmail.com 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) --8<---------------cut here---------------start------------->8--- ; If we leave Emacs running overnight - reset the appointments one minute after midnight (run-at-time "24:01" nil 'bh/org-agenda-to-appt) --8<---------------cut here---------------end--------------->8--- This originally came from Carsten Dominik years ago ... when I was setting up my appt for the first time. Thanks Carsten! Regards, Bernt