diff options
| author | Edward M. Reingold | 1997-11-26 16:35:30 +0000 |
|---|---|---|
| committer | Edward M. Reingold | 1997-11-26 16:35:30 +0000 |
| commit | 8a3ba1aa06ddbac986e4094155c1f6a60882d066 (patch) | |
| tree | 0ae96ca047361b6f7e26b95a979fce37bca3240f | |
| parent | 2231645f5e121df5c97dd7d88c042406bc107c2c (diff) | |
| download | emacs-8a3ba1aa06ddbac986e4094155c1f6a60882d066.tar.gz emacs-8a3ba1aa06ddbac986e4094155c1f6a60882d066.zip | |
Describe diary-float function.
| -rw-r--r-- | lispref/calendar.texi | 34 |
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 |
| 777 | and your diary will show | 777 | and the fancy diary will show |
| 778 | @smallexample | 778 | @smallexample |
| 779 | Ruth & Ed's anniversary | 779 | Ruth & 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 |
| 795 | causes your diary to show | 795 | causes the fancy diary to show |
| 796 | 796 | ||
| 797 | @smallexample | 797 | @smallexample |
| 798 | Rake leaves | 798 | Rake leaves |
| 799 | @end smallexample | 799 | @end smallexample |
| 800 | 800 | ||
| 801 | @noindent | 801 | @noindent |
| 802 | on October 22, November 22, and December 22 of any year. | 802 | on 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 | ||
| 806 | that apply to dates like the third Friday of November, or the last | ||
| 807 | Tuesday in April. The parameters are the @var{month}, @var{dayname}, | ||
| 808 | and an index @var{n}. The entry appears on the @var{n}th @var{dayname} | ||
| 809 | of @var{month}, where @var{dayname}=0 means Sunday, 1 means Monday, and | ||
| 810 | so 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 | ||
| 812 | month, or @code{t} to specify all months. You can also use an optional | ||
| 813 | parameter @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 | ||
| 815 | to 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 | ||
| 823 | causes the fancy diary to show | ||
| 824 | |||
| 825 | @smallexample | ||
| 826 | Pay rent | ||
| 827 | @end smallexample | ||
| 828 | |||
| 829 | @noindent | ||
| 830 | on 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 |
| 805 | that you can describe algorithmically. A sexp diary entry contains an | 833 | that you can describe algorithmically. A sexp diary entry contains an |