From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Non-scheduled repeating tasks Date: Fri, 23 May 2014 07:52:44 +0200 Message-ID: <87sio1f3df.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37663) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WniPZ-0000HM-Rj for emacs-orgmode@gnu.org; Fri, 23 May 2014 01:53:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WniPQ-0006Ao-QH for emacs-orgmode@gnu.org; Fri, 23 May 2014 01:52:57 -0400 Received: from mail-wg0-x230.google.com ([2a00:1450:400c:c00::230]:41851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WniPQ-0006Ak-Ie for emacs-orgmode@gnu.org; Fri, 23 May 2014 01:52:48 -0400 Received: by mail-wg0-f48.google.com with SMTP id k14so106323wgh.7 for ; Thu, 22 May 2014 22:52:47 -0700 (PDT) In-Reply-To: (Albin Stjerna's message of "Mon, 5 May 2014 15:52:26 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Albin Stjerna Cc: emacs-orgmode@gnu.org Hi Albin, Albin Stjerna writes: > 1. Has something like this been attempted by anyone else before? No -- but there are regular feature requests around making repeaters more flexible. I hope I can enhance this for 8.4 (or 9.0.) > 2. Which org-mode hooks would be a good place to start integrating > something that would both potentially block TODO transitions and have > to read/write properties and/or special drawers in org-mode? You can cook something from `org-after-todo-state-change-hook'. Put the repeat value in a property, decrease it each time a task is done until the repeater value is 0. Displaying the repeater value can be done in column mode. That's for the first part of this feature -- the one with blocking TODOs, see `org-blocker-hook' and `org-trigger-hook'. Not sure it will help though. See also the manual on adding properties (i.e. `org-entry-put') and hacking Org in general. HTH, -- Bastien