From mboxrd@z Thu Jan 1 00:00:00 1970 From: Spenser Truex Subject: Re: Inserting todo time range Date: Sat, 29 Jun 2019 17:13:49 -0700 Message-ID: <871rzc2ama.fsf@spensertruex.com> References: <87blyj4j82.fsf@luisa.c0t0d0s0.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:42980) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhNSr-0001oC-QP for emacs-orgmode@gnu.org; Sat, 29 Jun 2019 20:13:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hhNSq-0003Cj-Lr for emacs-orgmode@gnu.org; Sat, 29 Jun 2019 20:13:05 -0400 Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:33096 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hhNSq-0003Bf-D8 for emacs-orgmode@gnu.org; Sat, 29 Jun 2019 20:13:04 -0400 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hhNSo-000lnQ-0Y for emacs-orgmode@gnu.org; Sun, 30 Jun 2019 02:13:02 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Michael Welle writes: > Hello, > > Raimund Kohl-Füchsle writes: > [...] >> If instead I would use >> >> ** TODO Test Time range >> >>     <2004-08-23 Mon>--<2004-08-26 Thu> >> >> then this for org-mode would just be one todo; if I mark it done on >> Mon all other days are marked as done, too. >> >> So how would I schedule a daily TODO only, say, this week from Mo - >> Fr? > well, I think there are only wuerg-arounds to gain the desired > behaviour. First, you can use a sexp to specify the days on which your > task will be inserted into your agenda: > > SCHEDULED: <%%(memq (calendar-day-of-week date) '(1 2 3 4 5))> > > But with that your task is done when you set it to done. Something > like the following isn't perfect, but seems to work: > > > ** TODO foobar > DEADLINE: <2020-01-04 Sat +1d> > SCHEDULED: <%%(memq (calendar-day-of-week date) '(1 2 3 4 5))> > [2019-03-31 Sun] I have also been wanting to be able to do this in my agenda, so I can have my daily M-F schedule in my org-agenda buffer. What would it take to write ORG to behave properly on a TODO range like that? -- Spenser Truex usenet@spensertruex.com https://spensertruex.com/ San Francisco, USA