From mboxrd@z Thu Jan 1 00:00:00 1970 From: Malcolm Purvis Subject: Automatically Concluding a Habit. Date: Sun, 18 Jun 2017 17:51:57 +1000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMV0B-0003Jo-OS for emacs-orgmode@gnu.org; Sun, 18 Jun 2017 03:52:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMV08-0002Tu-Lf for emacs-orgmode@gnu.org; Sun, 18 Jun 2017 03:52:07 -0400 Received: from mail108.syd.optusnet.com.au ([211.29.132.59]:56909) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMV08-0002Tg-AO for emacs-orgmode@gnu.org; Sun, 18 Jun 2017 03:52:04 -0400 Received: from lamech.local (n1-40-76-181.bla1.nsw.optusnet.com.au [1.40.76.181]) (Authenticated sender: malcolmpurvis@optusnet.com.au) by mail108.syd.optusnet.com.au (Postfix) with ESMTPSA id 68F3C1A5F75 for ; Sun, 18 Jun 2017 17:51:58 +1000 (AEST) 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 I have a habit that I'd like to perform every day or so in the lead up to an event, but after the event date I would like to be marked permanently done and never again appear in the agenda. Is there a way to do this automatically? I've tried with a combination of scheduled and deadlines, but the habit reappears after the deadline: * Prepare for Event DEADLINE: <2017-07-09 Sun> SCHEDULED: <2017-07-04 Tue .+1d> :PROPERTIES: :STYLE: habit :END: Editing the habit to remove the '.+1d' results in the desired behaviour, however I was hoping to avoid the manual edit. Thanks, Malcolm -- Malcolm Purvis