From mboxrd@z Thu Jan 1 00:00:00 1970 From: Trevor Murphy Subject: How do you use `pre-scheduled' deadline skipping with repeaters? Date: Tue, 23 Dec 2014 18:14:22 -0500 Message-ID: <87h9wmt0vl.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3Yew-0005i3-TC for Emacs-orgmode@gnu.org; Tue, 23 Dec 2014 18:14:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y3Yen-0000CD-Rg for Emacs-orgmode@gnu.org; Tue, 23 Dec 2014 18:14:34 -0500 Received: from mail-yh0-x230.google.com ([2607:f8b0:4002:c01::230]:53211) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3Yen-0000AU-MZ for Emacs-orgmode@gnu.org; Tue, 23 Dec 2014 18:14:25 -0500 Received: by mail-yh0-f48.google.com with SMTP id i57so3567779yha.21 for ; Tue, 23 Dec 2014 15:14:24 -0800 (PST) Received: from organize (70-89-14-193-jax-fl.hfc.comcastbusiness.net. [70.89.14.193]) by mx.google.com with ESMTPSA id u3sm14891656yhu.0.2014.12.23.15.14.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Dec 2014 15:14:22 -0800 (PST) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs-orgmode@gnu.org I really like to use `pre-scheduled' as the value of `org-agenda-skip-deadline-prewarning-if-scheduled'. Quoting the manual, "this can be used in a workflow where the first showing of the deadline will trigger you to schedule it, and then you don't want to be reminded of it because you will take care of it on the day when scheduled." I started applying this to tasks with repeating deadlines. So, for instance, I have the following in my agenda right now: ** REPEAT oil change :drive: SCHEDULED: <2014-12-23 Tue 09:00> DEADLINE: <2014-12-31 Wed .+6m> When I mark this done, the deadline repeater updates as I expect. But the scheduling information stays there and I have to manually unschedule the task to get it out of my agenda. I started looking into writing a function to unschedule after a repeat, but I'm having difficulty figuring out where to hook into `org-todo'. Or do I want to hook into `org-auto-repeat-maybe'? So, yeah. Do others use this `pre-scheduled' workflow for repeating deadlines? If so, is there an obvious solution to this little nuisance that I'm not seeing? -- Trevor Murphy, ASA, MAAA GnuPG Key: 0x83881C0A