emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Bernt Hansen <bernt@norang.ca>
Cc: Memnon Anon <gegendosenfleisch@googlemail.com>,
	nicholas.dokos@hp.com, emacs-orgmode@gnu.org,
	carsten.dominik@gmail.com
Subject: Re: missing appointments
Date: Thu, 23 Feb 2012 14:43:27 -0500	[thread overview]
Message-ID: <11742.1330026207@alphaville> (raw)
In-Reply-To: Message from Bernt Hansen <bernt@norang.ca> of "Thu, 23 Feb 2012 12:34:19 EST." <87lintzc6c.fsf@norang.ca>

Bernt Hansen <bernt@norang.ca> wrote:

> Memnon Anon <gegendosenfleisch@googlemail.com> writes:
> 
> > Nick Dokos <nicholas.dokos@hp.com> 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

  reply	other threads:[~2012-02-23 19:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-23  5:32 missing appointments Rodrigo Amestica
2012-02-23  9:02 ` Nick Dokos
2012-02-23 14:14   ` Memnon Anon
2012-02-23 17:34     ` Bernt Hansen
2012-02-23 19:43       ` Nick Dokos [this message]
2012-02-23 23:10         ` Nick Dokos

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=11742.1330026207@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=bernt@norang.ca \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gegendosenfleisch@googlemail.com \
    /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).