Dear all,

a late follow-up on the problem that, out of the box, org-contacts's
BIRTHDAY properties don't work with a 32-bit Emacs on Windows when there
are dates before 1970 (details quoted below).

For now I have "solved" this in an extremely pragmatic way: enabling the
display of anniversaries on 64-bit Linux only (which is the "other"
system on which I'm using my org file, and where it works).

In ~/.emacs:

(defun maybe-org-contacts-anniversaries (&optional field format)
  (if (equal system-configuration "x86_64-pc-linux-gnu")
      (org-contacts-anniversaries field format)))

In the contacts org file:

%%(maybe-org-contacts-anniversaries)

I guess that this could be handled more elegantly with an advice around
org-contacts-anniversaries, but I'm not yet an expert and couldn't
figure out how to do it.

Cheers,

Christoph

2011-08-22 13:59 Christoph Lange:
> …
> 
> On Sun, May 22, 2011 at 20:03, Eric S Fraga <e.fr...@ucl.ac.uk> wrote:
>> Le Wang <l26w...@gmail.com> writes:
>>> I'm seeing another issue now, where if any org contact has a birthday
>>> pre 1970, I get the error "Bad sexp at line xxx ...".  Does this work
>>> for anyone else?
>>> …
>>
>> This is probably related to the same problem as discussed in this
>> thread:
>>
>> http://thread.gmane.org/gmane.emacs.orgmode/39206
>
> I had the same problem and studied that thread, but still I have no
> idea of what to put into the BIRTHDAY field of an org-contact. It must
> be something like
>
> :BIRTHDAY: %%(…)
>
> but what expression do I have to use? I tried something like
> %%(org-date 2011 08 22), but that does not work (same error: "Bad
> sexp")

-- 
Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701

Reply via email to