From mboxrd@z Thu Jan 1 00:00:00 1970 From: julien cubizolles Subject: Re: Relative dates with sexep Date: Sun, 19 Sep 2010 10:40:40 +0200 Message-ID: <1284885640.7792.151.camel@localhost> References: <1284654438.7792.63.camel@localhost> <87tylo94tk.wl%ucecesf@ucl.ac.uk> <1284734515.7792.88.camel@localhost> <87pqwaho24.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=54465 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OxFS6-0005XK-Uq for emacs-orgmode@gnu.org; Sun, 19 Sep 2010 04:40:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OxFS5-0003Bi-SY for emacs-orgmode@gnu.org; Sun, 19 Sep 2010 04:40:50 -0400 Received: from smtp2-g21.free.fr ([212.27.42.2]:60718) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OxFS5-0003B8-D8 for emacs-orgmode@gnu.org; Sun, 19 Sep 2010 04:40:49 -0400 In-Reply-To: <87pqwaho24.wl%ucecesf@ucl.ac.uk> 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: Eric S Fraga Cc: org-mode Le samedi 18 septembre 2010 =C3=A0 20:03 +0100, Eric S Fraga a =C3=A9crit= : > > (defun diary-relative (n day) > > "Diary entry that will always appear N days from day" > > (=3D > > (calendar-absolute-from-gregorian date) > > (+ n (calendar-absolute-from-gregorian day)))) > >=20 > > I try to use it with a sexp like : > > <%%(diary-relative (7 '(09 15 2010)))> > >=20 > > which doesn't work. I really need to seriously read about lisp > > programming... >=20 > Possibly! ;-) >=20 > Try <%%(diary-relative 7 '(09 15 2010))> > as the arguments to a function should not be in ()s. Thanks, it works. Julien.