Julien Cubizolles writes: > Matt Lundin writes: > >> Nick Dokos writes: >> >>> Here's a quick implementation of the method I described earlier >>> in the thread: >> >> This works great. Thanks! Perhaps we could integrate something like this >> into org-bbdb.el... > > I second that. It's exactly what I was looking for. > Here's a patch to add a new function to org-bbdb.el that provides early warning for upcoming anniversaries; it also adds some documentation to org.texi. I cleaned up the implementation a bit: the date list is produced in a somewhat more lisp-ish way, the other helper functions have been moved into the new org-bbdb-anniversaries-future function to avoid polluting the name space. I could probably move the date list function in there as well, but it seems generic enough that it should be independently available. The meaning of the optional argument has changed: in the previous version, it meant "today plus the next n days"; now it means "today plus the next (n-1) days". Let me know what you think.