From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Cross Subject: Re: Scheduling and calendar-day-of-week Date: Sat, 07 Apr 2018 05:52:28 +1000 Message-ID: <87po3cyuwz.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f4XPX-0002Dh-Uo for emacs-orgmode@gnu.org; Fri, 06 Apr 2018 15:52:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f4XPX-0006iD-6z for emacs-orgmode@gnu.org; Fri, 06 Apr 2018 15:52:36 -0400 Received: from mail-pf0-x22b.google.com ([2607:f8b0:400e:c00::22b]:34194) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f4XPX-0006hm-0T for emacs-orgmode@gnu.org; Fri, 06 Apr 2018 15:52:35 -0400 Received: by mail-pf0-x22b.google.com with SMTP id q9so1489859pff.1 for ; Fri, 06 Apr 2018 12:52:34 -0700 (PDT) In-reply-to: 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: Cecil Westerhof Cc: emacs-orgmode@gnu.org Cecil Westerhof writes: > There is something I want to do on Monday, Wednesday and Friday. So I tried: > *** TODO Monday, Wednesday and Friday > SCHEDULED: <%%(memq (calendar-day-of-week date) '(1 3 5))> > > This seems to work: I see the activity on the correct days. > But then I changed today's entry to DONE. But then all are gone in my > agenda view. > What I want is for today's item to be 'gone' and the future ones still > displayed as TODO. Is that possible? Use of diary sexp entries is limited and this may not work. You may be better off using org built in support for repeated scheduled/deadline tasks. The other thing to note is that you need to use a different command when marking a repeating item as done. The manual has the following - #+BEGIN_QUOTE To mark a task with a repeater as ‘DONE’, use ‘C-- 1 C-c C-t’ (i.e., ‘org-todo’ with a numeric prefix argument of -1.) A timestamp(2) will be added under the deadline, to keep a record that you actually acted on the previous instance of this deadline. As a consequence of shifting the base date, this entry will no longer be visible in the agenda when checking past dates, but all future instances will be visible. #+END_QUOTE -- Tim Cross