diff options
author | Edward M. Reingold <reingold@emr.cs.iit.edu> | 1997-11-25 22:24:13 +0000 |
---|---|---|
committer | Edward M. Reingold <reingold@emr.cs.iit.edu> | 1997-11-25 22:24:13 +0000 |
commit | 412d06c9a1fe3e34274e78c14806f34ed5fa2ce3 (patch) | |
tree | 2d573ea4b9448c2cdb1e2414b469a5267b56948c /lispref | |
parent | 61c7e5f352d7e0a0cbf109c378d8f3b1025dd881 (diff) | |
download | emacs-412d06c9a1fe3e34274e78c14806f34ed5fa2ce3.tar.gz |
Describe diary-remind and diary-date.
Diffstat (limited to 'lispref')
-rw-r--r-- | lispref/calendar.texi | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/lispref/calendar.texi b/lispref/calendar.texi index 8e42a530f25..661e638fe7e 100644 --- a/lispref/calendar.texi +++ b/lispref/calendar.texi @@ -763,6 +763,44 @@ Renew medication (5th time) @noindent in the fancy diary display on September 8, 1990. + There is an early reminder diary sexp that includes its entry in the +diary not only on the date of occurrence, but also on earlier dates. +For example, if you want a reminder a week before your anniversary, you +can use + +@findex diary-remind +@smallexample +%%(diary-remind '(diary-anniversary 12 22 1968) 7) Ruth & Ed's anniversary +@end smallexample + +@noindent +and your diary will show +@smallexample +Ruth & Ed's anniversary +@end smallexample +@noindent +both on December 15 and on December 22. + +@findex diary-date + The function @code{diary-date} applies to dates described by a month, +day, year combination, each of which can be an integer, a list of +integers, or @code{t}. The value @code{t} means all values. For +example, + +@smallexample +%%(diary-date '(10 11 12) 22 t) Rake leaves +@end smallexample + +@noindent +causes your diary to show + +@smallexample +Rake leaves +@end smallexample + +@noindent +on October 22, November 22, and December 22 of any year. + The generality of sexp diary entries lets you specify any diary entry that you can describe algorithmically. A sexp diary entry contains an expression that computes whether the entry applies to any given date. |