all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Marius Hofert <marius.hofert@math.ethz.ch>
Cc: nicholas.dokos@hp.com, Emacs help <emacs-orgmode@gnu.org>
Subject: Re: How to set up anniversaries/birthdays with org-contacts-anniversaries?
Date: Tue, 08 Nov 2011 16:33:16 -0500	[thread overview]
Message-ID: <4660.1320787996@alphaville.americas.hpqcorp.net> (raw)
In-Reply-To: Message from Marius Hofert <marius.hofert@math.ethz.ch> of "Tue, 08 Nov 2011 22:03:39 +0100." <32789D68-74E0-4B80-9C17-BB9C405535F9@math.ethz.ch>

Marius Hofert <marius.hofert@math.ethz.ch> 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

  reply	other threads:[~2011-11-08 21:33 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-06 11:05 How to set up anniversaries/birthdays with org-contacts-anniversaries? Marius Hofert
2011-11-08 21:03 ` Marius Hofert
2011-11-08 21:33   ` Nick Dokos [this message]
2011-11-08 21:43     ` Marius Hofert
2011-11-08 22:07       ` Nick Dokos
2011-11-08 22:16         ` Marius Hofert
2011-11-08 22:33           ` Jambunathan K
2011-11-08 22:36             ` Marius Hofert
2011-11-08 22:50               ` Jambunathan K
2011-11-08 23:06               ` Nick Dokos
2011-11-08 23:13                 ` Marius Hofert
2011-11-08 23:17                   ` Marius Hofert
2011-11-08 23:21                   ` Nick Dokos
2011-11-08 23:25                     ` Marius Hofert
2011-11-08 23:37                       ` Jonathan Leech-Pepin
2011-11-08 23:12             ` Marius Hofert
2011-11-08 22:48           ` Nick Dokos

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4660.1320787996@alphaville.americas.hpqcorp.net \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=marius.hofert@math.ethz.ch \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.