From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: reingold@emr.cs.iit.edu (Edward M. Reingold) Newsgroups: gmane.emacs.help Subject: Re: Bug with diary-float ? Date: 25 Apr 2008 17:59:05 -0500 Organization: Usenet @ UIUC - http://www.killfile.org/usenet/ Message-ID: <85skx9ils6.fsf__12357.6580816463$1209184198$gmane$org@emr.cs.iit.edu> References: <873apakocu.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1209184156 15634 80.91.229.12 (26 Apr 2008 04:29:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Apr 2008 04:29:16 +0000 (UTC) Cc: 873apakocu.fsf@gmail.com, Glenn Morris , emacs-devel@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 26 06:29:51 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jpc2m-0007dj-IM for geh-help-gnu-emacs@m.gmane.org; Sat, 26 Apr 2008 06:29:48 +0200 Original-Received: from localhost ([127.0.0.1]:52851 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jpc25-0003Xa-VG for geh-help-gnu-emacs@m.gmane.org; Sat, 26 Apr 2008 00:29:06 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!news.ks.uiuc.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-NNTP-Posting-Host: emr.cs.iit.edu Original-X-Trace: news.ks.uiuc.edu 1209164347 12571 216.47.142.126 (25 Apr 2008 22:59:07 GMT) Original-X-Complaints-To: news+abuse@ks.uiuc.edu Original-NNTP-Posting-Date: Fri, 25 Apr 2008 22:59:07 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Original-Xref: shelby.stanford.edu gnu.emacs.help:158183 X-Mailman-Approved-At: Sat, 26 Apr 2008 00:28:47 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53550 Archived-At: >>>>> "BA" == Brian Adkins 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.