summaryrefslogtreecommitdiff
path: root/lispref
diff options
context:
space:
mode:
authorEdward M. Reingold <reingold@emr.cs.iit.edu>1997-11-26 16:35:30 +0000
committerEdward M. Reingold <reingold@emr.cs.iit.edu>1997-11-26 16:35:30 +0000
commit98078858c57603bc6ea53ef9dfafcb4c4d5013c8 (patch)
tree11574553ff96e863de4fb4a5154f1df8b34d9d12 /lispref
parent959381ddc4c88d69566d299dee597f8476a36bd2 (diff)
downloademacs-98078858c57603bc6ea53ef9dfafcb4c4d5013c8.tar.gz
Describe diary-float function.
Diffstat (limited to 'lispref')
-rw-r--r--lispref/calendar.texi34
1 files changed, 31 insertions, 3 deletions
diff --git a/lispref/calendar.texi b/lispref/calendar.texi
index 661e638fe7e..851155fb38c 100644
--- a/lispref/calendar.texi
+++ b/lispref/calendar.texi
@@ -774,7 +774,7 @@ can use
@end smallexample
@noindent
-and your diary will show
+and the fancy diary will show
@smallexample
Ruth & Ed's anniversary
@end smallexample
@@ -792,14 +792,42 @@ example,
@end smallexample
@noindent
-causes your diary to show
+causes the fancy diary to show
@smallexample
Rake leaves
@end smallexample
@noindent
-on October 22, November 22, and December 22 of any year.
+on October 22, November 22, and December 22 of every year.
+
+@findex diary-float
+ The function @code{diary-float} allows you to describe diary entries
+that apply to dates like the third Friday of November, or the last
+Tuesday in April. The parameters are the @var{month}, @var{dayname},
+and an index @var{n}. The entry appears on the @var{n}th @var{dayname}
+of @var{month}, where @var{dayname}=0 means Sunday, 1 means Monday, and
+so on. If @var{n} is negative it counts backward from the end of
+@var{month}. The value of @var{month} can be a list of months, a single
+month, or @code{t} to specify all months. You can also use an optional
+parameter @var{day} to specify the @var{n}th @var{dayname} of
+@var{month} on or after/before @var{day}; the value of @{day} defaults
+to 1 if @var{n} is positive and to the last day of @var{month} if
+@var{n} is negative. For example,
+
+@smallexample
+%%(diary-float t 1 -1) Pay rent
+@end smallexample
+
+@noindent
+causes the fancy diary to show
+
+@smallexample
+Pay rent
+@end smallexample
+
+@noindent
+on the last Monday of every month.
The generality of sexp diary entries lets you specify any diary entry
that you can describe algorithmically. A sexp diary entry contains an