From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph LANGE Subject: org-contacts-anniversaries 'Bad sexp' bug keeps haunting me Date: Mon, 29 Sep 2014 11:50:29 +0200 Message-ID: <54292B65.9020605@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYXbQ-0001Kx-M4 for emacs-orgmode@gnu.org; Mon, 29 Sep 2014 05:50:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYXbM-0003vY-LE for emacs-orgmode@gnu.org; Mon, 29 Sep 2014 05:50:44 -0400 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:33359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYXbM-0003v7-DT for emacs-orgmode@gnu.org; Mon, 29 Sep 2014 05:50:40 -0400 Received: by mail-wg0-f42.google.com with SMTP id z12so2330539wgg.25 for ; Mon, 29 Sep 2014 02:50:34 -0700 (PDT) Received: from [192.168.1.3] (koln-4d0dd326.pool.mediaWays.net. [77.13.211.38]) by mx.google.com with ESMTPSA id yr10sm4159799wjc.38.2014.09.29.02.50.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Sep 2014 02:50:33 -0700 (PDT) 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: Org mode Hi all, for a while I had been able to run org-contacts-anniversaries with BIRTHDAY dates successfully, as explained at the bottom of https://julien.danjou.info/projects/emacs-packages#org-contacts. This was on 64-bit Linux. On 32-bit Windows I had the function disabled, as I have contacts both before 1970. (See this thread: http://comments.gmane.org/gmane.emacs.orgmode/42139) Now, for the first time, I'm running a 64-bit Emacs on Windows (http://emacsbinw64.sourceforge.net/). I was confident that org-contacts-anniversaries would work for me, but it didn't. Once more any invocation of an agenda involving org-contacts-anniversaries haunted me with the "Bad sexp" error message, pointing to the line in my contacts.org that contains "%%(org-contacts-anniversaries)". I am running org-8.2.7c from ELPA, on Emacs 24.4.50.1. I think I didn't make any of the mistakes documented previously: * running a mixed Org installation (Org as bundled with Emacs, plus non-bundled packages; http://stackoverflow.com/a/15568713/2397768) * using the wrong syntax for org-contacts-files (http://stackoverflow.com/a/14057170/2397768) * using empty BIRTHDAY fields (http://stackoverflow.com/a/21968778/2397768) * not having diary loaded (https://www.mail-archive.com/emacs-orgmode@gnu.org/msg48710.html – but isn't it actually loaded automatically by org-agenda.el when org-agenda-include-diary is set to t?) FYI this is how I disabled org-contacts-anniversaries on non-64-bit systems: ; disable anniversaries on non-64-bit systems (as they don't handle dates before 1970) (defadvice org-contacts-anniversaries (around disable-org-contacts-anniversaries-on-32-bit) "No anniversaries on 32-bit systems" (if (string-prefix-p "x86_64" system-configuration) (ad-do-it))) (ad-activate 'org-contacts-anniversaries) This code does not cause my problem. I have tested it before, and without this code I'm still getting the "Bad sexp". I'm giving up for now, reverting to manually maintained entries like this in my contacts.org: %%(org-anniversary YYYY MM DD) Name (%d years) Cheers, and thanks in advance for any helpful advice, Christoph -- Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → SEMANTiCS conference: Transfer–Engineering–Community. Leipzig, Germany, 4–5 September (workshops 1–3 September). Including Vocabulary Carnival, LOD for SMEs, Linked Data Quality.