From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph LANGE Subject: Re: org-contacts and dates before 1970 Date: Thu, 03 Nov 2011 14:29:26 +0100 Message-ID: <4EB29736.4040001@googlemail.com> References: <87ipt2ipdg.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLxMJ-0005MY-J9 for emacs-orgmode@gnu.org; Thu, 03 Nov 2011 09:29:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLxMC-0005Ps-Ri for emacs-orgmode@gnu.org; Thu, 03 Nov 2011 09:29:31 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:37047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLxMC-0005Pd-En for emacs-orgmode@gnu.org; Thu, 03 Nov 2011 09:29:24 -0400 Received: by bkas6 with SMTP id s6so1364738bka.0 for ; Thu, 03 Nov 2011 06:29:23 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Le Wang , Orgmode Mailing List 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 wrote: >> Le Wang 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