From: Brian Adkins <lojicdotcom@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Bug with diary-float ?
Date: Fri, 25 Apr 2008 21:40:28 -0400 [thread overview]
Message-ID: <8763u5gzqr.fsf@gmail.com> (raw)
In-Reply-To: 85skx9ils6.fsf@emr.cs.iit.edu
reingold@emr.cs.iit.edu (Edward M. Reingold) writes:
>>>>>> "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
Huh? Are you saying that May 4, 2008 should count as a "5th Sunday of
the month"? diary-float works as I'd expect for all cases where the date
actually exists in the month e.g. 1st Wednesday, 3rd Wednesday, 2nd
Saturday, etc.
I think it's a bug in the function, not the documentation.
>
> --
>
> 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.
next prev parent reply other threads:[~2008-04-26 1:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-25 14:20 Bug with diary-float ? Brian Adkins
2008-04-25 18:16 ` Peter Dyballa
[not found] ` <85skx9ils6.fsf@emr.cs.iit.edu>
2008-04-26 1:40 ` Brian Adkins [this message]
2008-04-28 17:07 ` Edward M. Reingold
2008-05-03 1:31 ` Brian Adkins
-- strict thread matches above, loose matches on Subject: below --
2008-04-25 22:59 Edward M. Reingold
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8763u5gzqr.fsf@gmail.com \
--to=lojicdotcom@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).