From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: Setting recurring deadlines Date: Mon, 09 Feb 2009 17:32:04 -0500 Message-ID: <22773.1234218724@alphaville.usa.hp.com> References: <57AC2FA1761300418C7AB8F3EA493C97027B9B2B@HQ-EXCH-5.corp.brocade.com> <87wsbz5nfo.fsf@thinkpad.tsdh.de> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWegv-0000u3-J8 for emacs-orgmode@gnu.org; Mon, 09 Feb 2009 17:33:25 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWegu-0000tT-ME for emacs-orgmode@gnu.org; Mon, 09 Feb 2009 17:33:25 -0500 Received: from [199.232.76.173] (port=43336 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWegu-0000tQ-IC for emacs-orgmode@gnu.org; Mon, 09 Feb 2009 17:33:24 -0500 Received: from g1t0027.austin.hp.com ([15.216.28.34]:9119) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LWegt-0004bS-W4 for emacs-orgmode@gnu.org; Mon, 09 Feb 2009 17:33:24 -0500 In-Reply-To: Message from Tassilo Horn of "Mon, 09 Feb 2009 22:07:39 +0100." <87wsbz5nfo.fsf@thinkpad.tsdh.de> 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: Tassilo Horn Cc: emacs-orgmode@gnu.org Tassilo Horn wrote: > Manish writes: > > >> I am having trouble with something pretty basic. I am trying to setup > >> a recurring deadline on the last day of every month. However, when I > >> set it as <2009-02-28 +1m>, the next deadline shows up at 2009-03-28, > >> rather than 31st March. > >> > >> I don't use appt/diary. Is there a way to do this in org-mode? > > > > Currently not possible to the best of my knowledge. IMHO, including > > via diary seems to be a reasonable workaround. > > 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