unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* diary sexp
@ 2006-11-19 15:47 Raimund Kohl-Fuechsle
  2006-11-19 16:16 ` Dieter Wilhelm
  0 siblings, 1 reply; 3+ messages in thread
From: Raimund Kohl-Fuechsle @ 2006-11-19 15:47 UTC (permalink / raw)


Hiya,

I have a monthly meeting on the first Thu every month for the next 12
months.  Therefor I created a diary entry this way:

%%(diary-float '(11 12 1 2 3 4 5 6 7 8 9 10) 4 1) "The Easy Way
Discourses", Mannheim

Works.  No problem.

BUT:  I would like to have Emacs telling me the Discourse number ...
something like

"The Easy Way Discourses", No 3, Mannheim

Number 1 started in Nov, no. 2 will take place in Dec and so on.  How
can I do this?

cheers, ray

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: diary sexp
  2006-11-19 15:47 Raimund Kohl-Fuechsle
@ 2006-11-19 16:16 ` Dieter Wilhelm
  0 siblings, 0 replies; 3+ messages in thread
From: Dieter Wilhelm @ 2006-11-19 16:16 UTC (permalink / raw)
  Cc: Emacs Help

Raimund Kohl-Fuechsle <Raimund.Kohl@nabuli.de> writes:

> Hiya,
>
> I have a monthly meeting on the first Thu every month for the next 12
> months.  Therefor I created a diary entry this way:
>
> %%(diary-float '(11 12 1 2 3 4 5 6 7 8 9 10) 4 1) "The Easy Way
> Discourses", Mannheim
>
> Works.  No problem.
>
> BUT:  I would like to have Emacs telling me the Discourse number ...
> something like
>
> "The Easy Way Discourses", No 3, Mannheim
>
> Number 1 started in Nov, no. 2 will take place in Dec and so on.  How
> can I do this?

This reminds me of diary-anniversary. You can can specify %d which
gives you the age.  This is independent of the diary-remind below:

%%(diary-remind '(diary-anniversary 1 7 1997) '(1 2 3 4 5 6 7)) Silvana's birthday (now %d years old)

I don't think there is something for months or even monthly difference
though.  But this function could give you hints how to implement this.

-- 
    Best wishes

    H. Dieter Wilhelm
    Darmstadt, Germany

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: diary sexp
       [not found] <mailman.835.1163951254.2155.help-gnu-emacs@gnu.org>
@ 2006-11-19 18:09 ` Edward M. Reingold
  0 siblings, 0 replies; 3+ messages in thread
From: Edward M. Reingold @ 2006-11-19 18:09 UTC (permalink / raw)


>>>>> "RK" == Raimund Kohl-Fuechsle <Raimund.Kohl@nabuli.de> writes:

    RK> %%(diary-float '(11 12 1 2 3 4 5 6 7 8 9 10) 4 1) "The Easy Way
    RK> Discourses", Mannheim
    RK> BUT: I would like to have Emacs telling me the Discourse number ...
    RK> something like
    RK> "The Easy Way Discourses", No 3, Mannheim
    RK> Number 1 started in Nov, no. 2 will take place in Dec and so on.  How
    RK> can I do this?

This will be very messy; you need to rewrite diary-float, a fairly complicated
function.  The problem is that you need to get the particluar month for which
the diary entry applies, something acessible only deep in the internals of
diary-float.  If this is a one-time need, I'd suggest simply writing the diary
entries manually.  If this is a general need, you'll have to go digging in the
into the code for diary-float.

-- 

Professor Edward M. Reingold                Email: reingold@iit.edu
Department of Computer Science              Voice: (312) 567-3309
Illinois Institute of Technology            Assistant: (312) 567-5152
Stuart Building                             Fax:   (312) 567-5067
10 West 31st Street, Suite 236
Chicago, IL  60616-3729  U.S.A.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-19 18:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.835.1163951254.2155.help-gnu-emacs@gnu.org>
2006-11-19 18:09 ` diary sexp Edward M. Reingold
2006-11-19 15:47 Raimund Kohl-Fuechsle
2006-11-19 16:16 ` Dieter Wilhelm

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).