From mboxrd@z Thu Jan 1 00:00:00 1970 From: pmlists@free.fr (Peter =?utf-8?Q?M=C3=BCnster?=) Subject: Re: notify, when something to do Date: Sun, 23 Oct 2011 20:17:57 +0200 Message-ID: <87mxcr373e.fsf@micropit.couberia.bzh> References: <87vcrgqav9.fsf@micropit.couberia.bzh> <87pqhnade0.fsf@thinkpad.tsdh.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RI2ce-0000LE-W4 for emacs-orgmode@gnu.org; Sun, 23 Oct 2011 14:18:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RI2cd-00045p-Tm for emacs-orgmode@gnu.org; Sun, 23 Oct 2011 14:18:12 -0400 Received: from lo.gmane.org ([80.91.229.12]:43298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RI2cd-00045Z-Of for emacs-orgmode@gnu.org; Sun, 23 Oct 2011 14:18:11 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RI2cc-0001nG-FC for emacs-orgmode@gnu.org; Sun, 23 Oct 2011 20:18:10 +0200 Received: from arennes-359-1-251-199.w2-2.abo.wanadoo.fr ([2.2.202.199]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Oct 2011 20:18:10 +0200 Received: from pmlists by arennes-359-1-251-199.w2-2.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Oct 2011 20:18:10 +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: emacs-orgmode@gnu.org On Sun, Oct 23 2011, Tassilo Horn wrote: > pmlists@free.fr (Peter Münster) writes: > >> I would like to be notified[1], when a todo item enters the warning >> period, scheduled time, or deadline. > > I export my org entries as appt alarms, so that I get system > notifications 15 minutes before meetings (every 1 minute until I > discard them). Here's the code: Hello Tassilo, First, I took a look at the lines --8<---------------cut here---------------start------------->8--- (org-agenda-to-appt t) (appt-activate 1) --8<---------------cut here---------------end--------------->8--- This is already a good starting point, just 3 remarks: - I think, I'll need a filter for org-agenda-to-appt, because I only want TODO items. Should be no problem. - How to distinguish between SCHEDULED and DEADLINE? I'll investigate... - Perhaps the main problem: appt does not know about warning periods. There are items with "-3d", other with "-5M"[1]. There is only one universal appt-message-warning-time. Would it be possible, to have a individual warning-time for each todo-item, directly computed from the warning time in the org-timestamp? In the meantime, I'll take a look at your th-appt-alarm. Thanks for your code! Peter Footnotes: [1] That means "warn 5 minutes before". I don't know, if org-mode supports this. "-2H" for hours would be useful too.