aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdward M. Reingold1997-11-26 16:35:30 +0000
committerEdward M. Reingold1997-11-26 16:35:30 +0000
commit8a3ba1aa06ddbac986e4094155c1f6a60882d066 (patch)
tree0ae96ca047361b6f7e26b95a979fce37bca3240f
parent2231645f5e121df5c97dd7d88c042406bc107c2c (diff)
downloademacs-8a3ba1aa06ddbac986e4094155c1f6a60882d066.tar.gz
emacs-8a3ba1aa06ddbac986e4094155c1f6a60882d066.zip
Describe diary-float function.
-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
774@end smallexample 774@end smallexample
775 775
776@noindent 776@noindent
777and your diary will show 777and the fancy diary will show
778@smallexample 778@smallexample
779Ruth & Ed's anniversary 779Ruth & Ed's anniversary
780@end smallexample 780@end smallexample
@@ -792,14 +792,42 @@ example,
792@end smallexample 792@end smallexample
793 793
794@noindent 794@noindent
795causes your diary to show 795causes the fancy diary to show
796 796
797@smallexample 797@smallexample
798Rake leaves 798Rake leaves
799@end smallexample 799@end smallexample
800 800
801@noindent 801@noindent
802on October 22, November 22, and December 22 of any year. 802on October 22, November 22, and December 22 of every year.
803
804@findex diary-float
805 The function @code{diary-float} allows you to describe diary entries
806that apply to dates like the third Friday of November, or the last
807Tuesday in April. The parameters are the @var{month}, @var{dayname},
808and an index @var{n}. The entry appears on the @var{n}th @var{dayname}
809of @var{month}, where @var{dayname}=0 means Sunday, 1 means Monday, and
810so on. If @var{n} is negative it counts backward from the end of
811@var{month}. The value of @var{month} can be a list of months, a single
812month, or @code{t} to specify all months. You can also use an optional
813parameter @var{day} to specify the @var{n}th @var{dayname} of
814@var{month} on or after/before @var{day}; the value of @{day} defaults
815to 1 if @var{n} is positive and to the last day of @var{month} if
816@var{n} is negative. For example,
817
818@smallexample
819%%(diary-float t 1 -1) Pay rent
820@end smallexample
821
822@noindent
823causes the fancy diary to show
824
825@smallexample
826Pay rent
827@end smallexample
828
829@noindent
830on the last Monday of every month.
803 831
804 The generality of sexp diary entries lets you specify any diary entry 832 The generality of sexp diary entries lets you specify any diary entry
805that you can describe algorithmically. A sexp diary entry contains an 833that you can describe algorithmically. A sexp diary entry contains an