From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel J. Sinder" Subject: New slant on the "Second tuesday of the month" problem Date: Mon, 11 Jan 2010 15:45:07 -0800 Message-ID: <4B4BB803.9060908@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NUTwh-0000tU-JK for emacs-orgmode@gnu.org; Mon, 11 Jan 2010 18:45:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NUTwc-0000t7-PF for emacs-orgmode@gnu.org; Mon, 11 Jan 2010 18:45:14 -0500 Received: from [199.232.76.173] (port=40752 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUTwc-0000t3-N8 for emacs-orgmode@gnu.org; Mon, 11 Jan 2010 18:45:10 -0500 Received: from caiajhbdcaid.dreamhost.com ([208.97.132.83]:34544 helo=randymail-a9.g.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NUTwc-00051Z-B3 for emacs-orgmode@gnu.org; Mon, 11 Jan 2010 18:45:10 -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: org-mode The question of timestamps for events that occur based on the ordinal count of weeks in the month (e.g., "every second Tuesday of the month") has come up several times before. The bottom line is that a diary sexp has to be used, and I understand that. This is fine for, say, U.S. election days ("Tuesday after the first Monday of November") because they are never postponed. However, some repeating events like this (like work meetings) occasionally get postponed a day or two. Normally, I use multiple headings for repeating events that have this problem, which is easy thanks to org-clone-subtree-with-time-shift. With this, I can shift any given occurrence right from the agenda, and even add meeting notes to the headlines for specific meeting occurrences. How can I achieve this with an event that *requires* a diary sexp? In essence I would like a function org-create-subtree-clones-from-diary-sexp that would generate N headlines for the next N occurrences of the event in an sexp. Or, is there another way to achieve this? Thanks, Dan