From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Monthly events based on count of specific weekdays Date: Sun, 08 Nov 2009 07:59:16 -0500 Message-ID: References: <87ws214lpo.fsf@benfinney.id.au> <87fx8p434f.fsf@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N77Mb-0004tf-CH for emacs-orgmode@gnu.org; Sun, 08 Nov 2009 07:59:25 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N77MV-0004nz-JL for emacs-orgmode@gnu.org; Sun, 08 Nov 2009 07:59:23 -0500 Received: from [199.232.76.173] (port=39846 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N77MV-0004nq-FN for emacs-orgmode@gnu.org; Sun, 08 Nov 2009 07:59:19 -0500 Received: from out4.smtp.messagingengine.com ([66.111.4.28]:57794) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N77MV-0003SF-3Y for emacs-orgmode@gnu.org; Sun, 08 Nov 2009 07:59:19 -0500 In-Reply-To: <87fx8p434f.fsf@benfinney.id.au> (Ben Finney's message of "Sun, 08 Nov 2009 23:23:12 +1100") 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: Ben Finney Cc: emacs-orgmode@gnu.org Ben Finney writes: > 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? > [=E2=80=A6] > >> > Taking =E2=80=9Cfirst Tuesday of the month=E2=80=9D, 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 >> |=20 >> | * The nerd meeting on every 2nd Thursday of the month >> | <%%(diary-float t 4 2)> >> `---- > > Ah. Where can I find documentation on =E2=80=9Cthe special sexp diary ent= ries > implemented in the Emacs calendar/diary package=E2=80=9D? http://www.gnu.org/software/emacs/manual/html_node/emacs/Sexp-Diary-Entries= .html You can also type C-h i inside emacs and navigate to "Calendar/Diary". > >> 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.=20 Well, yes. But not for every possible niche usage. Org-mode provides human readable syntax for the majority of scenarios, but allows power users to harness the capabilities of emacs and elisp for the rest. > Is there a way to get a readable format that still behaves as I > described? Not that I know of. But since this is org-mode, you could add a note under the diary sexp explaining what it represents. You'd have to ask Carsten to implement a new timestamp syntax. What would you propose as a more readable designation? - Matt