How can I set up anniversaries with org-contacts so that birthdays etc. are shown in my agenda.org file?
My agenda.org file contains the following, as mentioned on the bottom of org-contacts
#+STARTUP: showeverything
* Birthdays
%%(org-contacts-anniversaries)
My contacts.org file contains (e.g.):
* My contact :my.tag:
:PROPERTIES:
:EMAIL: address@hidden
:URL:
:WORK:
:HOME:
:MOBILE:
:LOCATION:
:BIRTHDAY: 2000-01-01
:NOTE:
:END:
When I access agenda view via C-c a a, I obtain:
Bad sexp at line 3 in /Users/myusername/org/agenda.org: (org-contacts-anniversaries) [7 times]
Note that line three corresponds to "%%(org-contacts-anniversaries)"
I tried to contact the author of org-contacts but did not obtain an answer (so far). I am hoping someone has tried this before and it worked. I tried it under Emacs 24.0.91 (9.0) on Mac OS X 10.7.2
I solved this problem by changing the org-contacts-files variable to a list rather than a string.
For example, going from:
(setq org-contacts-files "~/Org Files/contacts.org")
to:
(setq org-contacts-files '("~/Org Files/contacts.org"))
worked for me.
It looks like the org-contacts-filter
function expects the org-contacts-files
variable to be a list rather than a string.
I got the error when there are contacts with the BIRTHDAY property but no value. Removing these entries eliminated the error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With