emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christoph LANGE <ch.lange@jacobs-university.de>
To: Le Wang <l26wang@gmail.com>,
	Orgmode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: org-contacts and dates before 1970
Date: Thu, 03 Nov 2011 14:29:26 +0100	[thread overview]
Message-ID: <4EB29736.4040001@googlemail.com> (raw)
In-Reply-To: <CAOPYeGyXWZW0GSnByi-FkAg2Ms3pw6w_hfqeKzc9TPCm+nBA-w@mail.gmail.com>

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.fraga@ucl.ac.uk> wrote:
>> Le Wang <l26wang@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	other threads:[~2011-11-03 13:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-22 16:19 org-contacts and dates before 1970 Le Wang
2011-05-22 18:03 ` Eric S Fraga
2011-05-23 12:05   ` Le Wang
2011-05-23 18:26     ` Eric S Fraga
2011-08-22 11:59   ` Christoph Lange
2011-11-03 13:29     ` Christoph LANGE [this message]
2011-12-28 16:36       ` Bastien

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=4EB29736.4040001@googlemail.com \
    --to=ch.lange@jacobs-university.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=l26wang@gmail.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).