[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Re: How to display a diary entry in agenda week view only "today"
From: |
Nick Dokos |
Subject: |
[O] Re: How to display a diary entry in agenda week view only "today" |
Date: |
Mon, 11 Apr 2011 11:24:52 -0400 |
Bernt Hansen <address@hidden> wrote:
> Nick Dokos <address@hidden> writes:
>
> > Suvayu Ali <address@hidden> wrote:
> >
> >> On Mon, 11 Apr 2011 14:55:24 +0200
> >> Niels Giesen <address@hidden> wrote:
> >>
> >> > On Mon, Apr 11, 2011 at 1:57 PM, Rainer Stengele
> >> > <address@hidden> wrote:
> >> > > Am 11.04.2011 10:36, schrieb Suvayu Ali:
> >> > >> On Mon, 11 Apr 2011 08:52:52 +0200
> >> > >>
> >> > >> %%(if (calendar-date-equal date (calendar-current-date))
> >> > >> (diary-sunrise-sunset))
> >> > >>
> >> > > Perfect, thanks.
> >> > >
> >> > > I can find the other functions in calendar.el,
> >> > > but where is "date" from?
> >> > >
> >> >
> >> > date is a dynamically bound variable at the time of evaluation.
> >> >
> >>
> >> I have a question I have been meaning to ask for a long time. How does
> >> one test sexps with variables like these? I have tried the scratch
> >> buffer but it gives errors like "(void-variable date)". I found the only
> >> way I could test is to put it on one of the agenda files.
> >>
> >> Any suggestions?
> >>
> >
> > Bind date explicitly in the scratch buffer and then evaluate:
> >
> > (setq date '(4 11 2011))
>
> Wouldn't a
> (let ((date '(4 11 2011)))
> <your text sexp goes here>)
>
> be better so date isn't permanently bound?
>
Sure - I tend to do these things in an isolated emacs, so I don't
particularly care - I kill it and restart it, since it goes off the rails
quite often - but if you use your main emacs, that is definitely
a good idea. OTOH, using your main emacs for experiments is probably *not*
a good idea anyway :-)
Nick
- [O] How to display a diary entry in agenda week view only "today", Rainer Stengele, 2011/04/11
- Re: [O] How to display a diary entry in agenda week view only "today", Suvayu Ali, 2011/04/11
- [O] Re: How to display a diary entry in agenda week view only "today", Rainer Stengele, 2011/04/11
- Re: [O] Re: How to display a diary entry in agenda week view only "today", Niels Giesen, 2011/04/11
- Re: [O] Re: How to display a diary entry in agenda week view only "today", Suvayu Ali, 2011/04/11
- Re: [O] Re: How to display a diary entry in agenda week view only "today", Nick Dokos, 2011/04/11
- Re: [O] Re: How to display a diary entry in agenda week view only "today", Niels Giesen, 2011/04/11
- [O] Re: How to display a diary entry in agenda week view only "today", Bernt Hansen, 2011/04/11
- [O] Re: How to display a diary entry in agenda week view only "today",
Nick Dokos <=
- Re: [O] Re: How to display a diary entry in agenda week view only "today", Suvayu Ali, 2011/04/11