emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: pmlists@free.fr (Peter Münster)
To: emacs-orgmode@gnu.org
Subject: Re: notify, when something to do
Date: Sun, 23 Oct 2011 20:17:57 +0200	[thread overview]
Message-ID: <87mxcr373e.fsf@micropit.couberia.bzh> (raw)
In-Reply-To: 87pqhnade0.fsf@thinkpad.tsdh.de

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.

  parent reply	other threads:[~2011-10-23 18:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-23 10:07 notify, when something to do Peter Münster
2011-10-23 16:20 ` Tassilo Horn
2011-10-23 16:30   ` Tassilo Horn
2011-10-23 18:17   ` Peter Münster [this message]
2011-10-23 19:09     ` Tassilo Horn
2011-10-23 21:23       ` Bastien
2011-10-24  5:14         ` Tassilo Horn
2011-10-23 21:29     ` Bastien
2011-10-24  9:29       ` Sebastien Vauban
2011-11-01 23:01       ` Peter Münster
2011-10-24 15:01 ` Christopher Allan Webber
2011-10-25 18:56   ` Marcelo de Moraes Serpa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mxcr373e.fsf@micropit.couberia.bzh \
    --to=pmlists@free.fr \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).