From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Finney Subject: Re: Monthly events based on count of specific weekdays Date: Sun, 08 Nov 2009 23:23:12 +1100 Message-ID: <87fx8p434f.fsf@benfinney.id.au> References: <87ws214lpo.fsf@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N76o5-0005PC-Da for emacs-orgmode@gnu.org; Sun, 08 Nov 2009 07:23:45 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N76o0-0005LN-JG for emacs-orgmode@gnu.org; Sun, 08 Nov 2009 07:23:44 -0500 Received: from [199.232.76.173] (port=38754 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N76o0-0005L9-8E for emacs-orgmode@gnu.org; Sun, 08 Nov 2009 07:23:40 -0500 Received: from lo.gmane.org ([80.91.229.12]:52468) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N76nz-0006l4-KD for emacs-orgmode@gnu.org; Sun, 08 Nov 2009 07:23:39 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1N76nv-0004cb-7z for emacs-orgmode@gnu.org; Sun, 08 Nov 2009 13:23:35 +0100 Received: from eth595.vic.adsl.internode.on.net ([150.101.214.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 08 Nov 2009 13:23:35 +0100 Received: from ben+emacs by eth595.vic.adsl.internode.on.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 08 Nov 2009 13:23:35 +0100 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: emacs-orgmode@gnu.org Matt Lundin writes: > Ben Finney writes: > > > How can I set an event in Org mode that repeats every month, on a > > specific weekday, on a week counted from the start of the month? […] > > Taking “first Tuesday of the month”, if I set it this month on > > <2009-11-15 Sun>, it should next repeat on <2009-12-20 Sun> and so > > on each month. > > From the org manual: > > ,----[8.1. Timestamps, deadlines, and scheduling] > | DIARY-STYLE SEXP ENTRIES > | For more complex date specifications, Org mode supports using the > | special sexp diary entries implemented in the Emacs calendar/diary > | package. For example > | > | * The nerd meeting on every 2nd Thursday of the month > | <%%(diary-float t 4 2)> > `---- Ah. Where can I find documentation on “the special sexp diary entries implemented in the Emacs calendar/diary package”? > Here's how to schedule the examples above: > > * First Tuesday of month > <%%(diary-float t 2 1)> > > * Third Sunday of month > <%%(diary-float t 0 3)> > > * First or third Wednesday of month > <%%(or (diary-float t 3 1) (diary-float t 3 3))> Hmm. That makes the entry unreadable as a date+time. One of the main advantages of the usual Org date+time specifications is they're perfectly readable even to people who know nothing about Org, Emacs, or Lisp. Is there a way to get a readable format that still behaves as I described? -- \ “I used to think that the brain was the most wonderful organ in | `\ my body. Then I realized who was telling me this.” —Emo Philips | _o__) | Ben Finney