From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn Subject: Re: Re: Setting recurring deadlines Date: Tue, 10 Feb 2009 10:03:31 +0100 Message-ID: <87k57y8xzw.fsf@thinkpad.tsdh.de> References: <57AC2FA1761300418C7AB8F3EA493C97027B9B2B@HQ-EXCH-5.corp.brocade.com> <87wsbz5nfo.fsf@thinkpad.tsdh.de> <22773.1234218724@alphaville.usa.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWoWo-000334-F7 for emacs-orgmode@gnu.org; Tue, 10 Feb 2009 04:03:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWoWm-00032J-7D for emacs-orgmode@gnu.org; Tue, 10 Feb 2009 04:03:37 -0500 Received: from [199.232.76.173] (port=44274 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWoWm-00032A-2n for emacs-orgmode@gnu.org; Tue, 10 Feb 2009 04:03:36 -0500 Received: from deliver.uni-koblenz.de ([141.26.64.15]:2327) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LWoWl-0007o2-I4 for emacs-orgmode@gnu.org; Tue, 10 Feb 2009 04:03:35 -0500 In-Reply-To: <22773.1234218724@alphaville.usa.hp.com> (Nick Dokos's message of "Mon, 09 Feb 2009 17:32:04 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org Nick Dokos writes: Hi Nick, >> I was curious how to get that done, but I couldn't find a diary for >> "each last day of a month" in diary, too. "Each second thursday in a >> month" is on emacswiki, but all those complex dates I found are wired >> to a specific day of the week... > > "Bah, how hard can that be?" - famous last words, now eaten (I did > choke on them along the way) ... > > Here's my attempt (tested *very* lightly): > > &%%(let ((lastday (calendar-last-day-of-month (calendar-extract-month date) > (calendar-extract-year date))) > (day (calendar-extract-day date))) > (= day lastday)) last day of month Using `calendar-last-day-of-month' is unfair. ;-) Bye, Tassilo