From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: How to set up anniversaries/birthdays with org-contacts-anniversaries? Date: Tue, 08 Nov 2011 16:33:16 -0500 Message-ID: <4660.1320787996@alphaville.americas.hpqcorp.net> References: <49FF00AC-D45D-41ED-95A9-98C771F52282@math.ethz.ch> <32789D68-74E0-4B80-9C17-BB9C405535F9@math.ethz.ch> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNtIS-0002Bo-4T for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 16:33:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNtIP-0000c9-Lg for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 16:33:32 -0500 Received: from g1t0028.austin.hp.com ([15.216.28.35]:24827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNtIP-0000aE-GE for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 16:33:29 -0500 In-Reply-To: Message from Marius Hofert of "Tue, 08 Nov 2011 22:03:39 +0100." <32789D68-74E0-4B80-9C17-BB9C405535F9@math.ethz.ch> 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: Marius Hofert Cc: nicholas.dokos@hp.com, Emacs help Marius Hofert wrote: > see here: http://stackoverflow.com/questions/8036948/how-to-set-up-birthdays-with-org-contacts-error-bad-sexp > > > On 2011-11-06, at 12:05 , Marius Hofert wrote: > > > How can I set up anniversaries with org-contact? > > > > My agend.org file contains the following, as mentioned on the bottom of http://julien.danjou.info/org-contacts.html > > > > #+STARTUP: showeverything > > * Birthdays > > %%(org-contacts-anniversaries) > > > > My contacts.org file contains (e.g.): > > > > * My contact :my.tag: > > :PROPERTIES: > > :EMAIL: my.contact@my.address.org > > :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)" > > The org sexp handler issues this message whenever an error is signalled when trying to evaluate the sexp. In this case (as in most of these cases), the error is probably because org-contacts-anniversaries is not defined, for whatever reason. Try to eval (org-contacts-anniversaries) manually - what do you get? I get ,---- | Debugger entered--Lisp error: (void-function org-contacts-anniversaries) | (org-contacts-anniversaries) | eval((org-contacts-anniversaries) nil) | eval-last-sexp-1(nil) | eval-last-sexp(nil) | call-interactively(eval-last-sexp nil nil) `---- Then load org-contacts with (require 'org-contacts) or similar, and try the eval again. I get nil as a result, but more importantly, no error. Assuming that you get no error either, try the agenda again. Nick