From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Re: Featurep weekday-only timestamps Date: Mon, 20 Apr 2009 11:54:00 -0500 Message-ID: <878wlvs1uf.fsf@fastmail.fm> References: <87vdozfkla.fsf@chondestes.bio.unc.edu> 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 1Lvwjs-0004Gc-7V for emacs-orgmode@gnu.org; Mon, 20 Apr 2009 12:53:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lvwjn-0004EJ-Gv for emacs-orgmode@gnu.org; Mon, 20 Apr 2009 12:52:59 -0400 Received: from [199.232.76.173] (port=56305 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lvwjn-0004EB-AC for emacs-orgmode@gnu.org; Mon, 20 Apr 2009 12:52:55 -0400 Received: from mx20.gnu.org ([199.232.41.8]:62430) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lvwjm-0000Yi-HA for emacs-orgmode@gnu.org; Mon, 20 Apr 2009 12:52:55 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lvwjl-0007Pl-BS for emacs-orgmode@gnu.org; Mon, 20 Apr 2009 12:52:53 -0400 In-Reply-To: <87vdozfkla.fsf@chondestes.bio.unc.edu> (Joel J. Adamson's message of "Mon, 20 Apr 2009 10:47:29 -0400") 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: "Joel J. Adamson" Cc: emacs-orgmode@gnu.org Hi Joel, adamsonj@email.unc.edu (Joel J. Adamson) writes: > Howdy Org-moders, > > I use org from git updated weekly. I would really like to be able to > specify a timestamp for certain days of the week, e.g. M-F, or MWF, > without specifying multiple timestamps for a single headline. Doing > that for something that happens twice a week is no hassle, but doing it > five times seems like too much. > > What I'd like is to have a headline like this: > ** Sacrifice for Demons <2009-04-20 Mon,Wed,Fri 10:00 +1w> > ** Wake Up <2009-04-20 Mon-Fri 5:45 +1w > You can do this with a diary sexp within org-mode. E.g., I used the following for a class that I taught on Tuesdays and Thursdays from January 8 through February 24: --8<---------------cut here---------------start------------->8--- ** Teach Course 1:20pm-2:35pm <%%(let ((d (calendar-day-of-week date))) (and (or (= d 2) (= d 4)) (diary-block 1 8 2009 2 24 2009)))> --8<---------------cut here---------------end--------------->8--- I'm an elisp amateur, but I imagine you could create your example above with the following: --8<---------------cut here---------------start------------->8--- ** Wake up 5:45am <%%(memq (calendar-day-of-week date) '(1 3 5)))> --8<---------------cut here---------------end--------------->8--- Someone please correct me if I'm doing something wrong here. Best, Matt