From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Using properties for diary-anniversaries Date: Sun, 23 Jan 2011 20:16:35 -0500 Message-ID: <7298.1295831795@gamaville.dokosmarshall.org> References: <1295793360.20637.1416756473@webmail.messagingengine.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=40103 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhB3C-0002gf-8d for emacs-orgmode@gnu.org; Sun, 23 Jan 2011 20:16:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PhB3B-0007Y3-4V for emacs-orgmode@gnu.org; Sun, 23 Jan 2011 20:16:58 -0500 Received: from vms173005pub.verizon.net ([206.46.173.5]:62891) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PhB3B-0007XY-1A for emacs-orgmode@gnu.org; Sun, 23 Jan 2011 20:16:57 -0500 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LFI004LF67PEM78@vms173005.mailsrvcs.net> for emacs-orgmode@gnu.org; Sun, 23 Jan 2011 19:16:38 -0600 (CST) In-reply-to: Message from lecodesportif@eml.cc of "Sun, 23 Jan 2011 06:36:00 PST." <1295793360.20637.1416756473@webmail.messagingengine.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: lecodesportif@eml.cc Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org lecodesportif@eml.cc wrote: > I have an anniversary list in Org Mode where entries have this format: > > * John > :PROPERTIES: > :Name: John > :Birthday: 5 4 1900 > :END: > > I would like to add the "Birthday" and "Name" properties to Org Agenda > automatically. What I have so far is: > > %%(apply 'diary-anniversary (read (org-entry-get nil "Birthday"))) John > > When I enter this line right after the properties, the anniversary is > added at the correct date in the agenda. But I still have to enter the > name manually. > Try something like this: %%(apply 'diary-anniversary (mapcar 'string-to-number (split-string (org-entry-get nil "Birthday")))) John is %d years old HTH, Nick