From: Jonathan Leech-Pepin <jonathan.leechpepin@gmail.com>
To: Marius Hofert <marius.hofert@math.ethz.ch>
Cc: nicholas.dokos@hp.com, Emacs help <emacs-orgmode@gnu.org>,
Jambunathan K <kjambunathan@gmail.com>
Subject: Re: How to set up anniversaries/birthdays with org-contacts-anniversaries?
Date: Tue, 8 Nov 2011 18:37:52 -0500 [thread overview]
Message-ID: <CAEWDx5fD_+5LVv41ss8TYUaTdLmMk85L4s6KhVgc4M-_S11uYA@mail.gmail.com> (raw)
In-Reply-To: <14423F95-5C91-4915-9C11-1F6F9E45ACC3@math.ethz.ch>
[-- Attachment #1: Type: text/plain, Size: 1369 bytes --]
:BIRTHDAY: without any date is an invalid date for the sexp.
org-contacts-anniversaries loops through all valid contacts (headlines with
an :EMAIL: property) for any that contain the :BIRTHDAY: property (by
default, this can be customized).
When there is no date associated the value is nil.
(calendar-gregorian-from-absolute
(org-time-string-to-absolute anniv))
Where anniv is the date retrieved from :BIRTHDAY:. nil is not a valid date,
so the expression fails, giving you a bad sexp.
On Tue, Nov 8, 2011 at 6:25 PM, Marius Hofert <marius.hofert@math.ethz.ch>wrote:
> >>> (load-library "diary")
> >>>
> >>> This calls the function load-library with the string argument "diary".
> >>> This form can be added to .emacs. Alternatively, you can use the
> >>> require form that I posted:
> >>>
> >>> (require 'diary)
> >>
> >> I obtain (also for (load-library "diary") ):
> >> File error: Cannot open load file, diary
> >>
> >> I assume I'm missing some diary.el (?).
> >>
> >
> > Nope, I'm wrong: diary-anniversary is in diary-lib, so the
> > correct form is
> >
> > (load-library "diary-lib")
> >
> > or
> >
> > (require 'diary-lib)
>
>
> okay, that's also what I tried and it worked. However, I still see the
> "Bad sexp..." error when there is a BIRTHDAY tag *without* date, so just a
> line containing ":BIRTHDAY:" But that's of course not a big issue.
>
>
>
[-- Attachment #2: Type: text/html, Size: 2073 bytes --]
next prev parent reply other threads:[~2011-11-08 23:37 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
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 [this message]
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
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=CAEWDx5fD_+5LVv41ss8TYUaTdLmMk85L4s6KhVgc4M-_S11uYA@mail.gmail.com \
--to=jonathan.leechpepin@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=kjambunathan@gmail.com \
--cc=marius.hofert@math.ethz.ch \
--cc=nicholas.dokos@hp.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).