[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug with diary-float ?
From: |
Edward M. Reingold |
Subject: |
Re: Bug with diary-float ? |
Date: |
25 Apr 2008 17:59:05 -0500 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
>>>>> "BA" == Brian Adkins <lojicdotcom@gmail.com> writes:
BA> I have the following line in my diary file: %%(diary-float t 0 5)
BA> 09:30-10:00 The Event
BA> It does correctly show the event for the 5th Sunday of months that
BA> have 5 Sundays, but it also shows on the 1st Sunday of a month
BA> following a month with only 4 Sundays :) Apparently the check to see
BA> if the computed day is still in the same month is missing or
BA> incorrect.
BA> Is this a known bug? I looked at the code in diary-lib.el, but my
BA> newbie elisp skills are not up to the task - that is one big hairy
BA> function.
A bug in the documentation. The documentation reads
Floating diary entry--entry applies if date is the nth dayname of month.
Parameters are MONTH, DAYNAME, N. MONTH can be a list of months, the
constant t, or an integer. The constant t means all months. If N is
negative, count backward from the end of the month.
An optional parameter DAY means the Nth DAYNAME on or after/before MONTH DAY
But it should really say
Floating diary entry--entry applies if date is the nth dayname on or after
the first of month. Parameters are MONTH, DAYNAME, N. MONTH can be a list
of months, the constant t, or an integer. The constant t means all months.
If N is negative, count backward from the end of the month.
An optional parameter DAY means the Nth DAYNAME on or after/before MONTH DAY
--
Professor Edward M. Reingold Email: reingold@iit.edu
Department of Computer Science Voice: (312) 567-3309
Illinois Institute of Technology Fax: (312) 567-5067
Stuart Building, 228F
10 West 31st Street
Chicago, IL 60616-3729 U.S.A.