all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: julien cubizolles <j.cubizolles@free.fr>
To: Eric S Fraga <e.fraga@ucl.ac.uk>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: Relative dates with sexep
Date: Sun, 19 Sep 2010 10:40:40 +0200	[thread overview]
Message-ID: <1284885640.7792.151.camel@localhost> (raw)
In-Reply-To: <87pqwaho24.wl%ucecesf@ucl.ac.uk>

Le samedi 18 septembre 2010 à 20:03 +0100, Eric S Fraga a écrit :

> > (defun diary-relative (n day)
> >   "Diary entry that will always appear N days from day"
> >   (=
> >    (calendar-absolute-from-gregorian date)
> >    (+ n (calendar-absolute-from-gregorian day))))
> > 
> > I try to use it with a sexp like :
> > <%%(diary-relative (7 '(09 15 2010)))>
> > 
> > which doesn't work. I really need to seriously read about lisp
> > programming...
> 
> Possibly! ;-)
> 
> Try <%%(diary-relative 7 '(09 15 2010))>
> as the arguments to a function should not be in ()s.

Thanks, it works.

Julien.

      reply	other threads:[~2010-09-19  8:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-16 16:27 Relative dates with sexep julien cubizolles
2010-09-17  8:01 ` Eric S Fraga
2010-09-17 14:10   ` julien cubizolles
2010-09-17 14:41   ` julien cubizolles
2010-09-18 19:03     ` Eric S Fraga
2010-09-19  8:40       ` julien cubizolles [this message]

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=1284885640.7792.151.camel@localhost \
    --to=j.cubizolles@free.fr \
    --cc=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /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.