From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: org-habit for multiple arbitrary days in a week Date: Mon, 13 Oct 2014 14:11:41 +0800 Message-ID: <87bnpgbisi.wl-jamshark70@qq.com> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XdYs4-0001Jc-01 for emacs-orgmode@gnu.org; Mon, 13 Oct 2014 02:12:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XdYry-0002AU-Eq for emacs-orgmode@gnu.org; Mon, 13 Oct 2014 02:12:39 -0400 Received: from smtpbgau1.qq.com ([54.206.16.166]:46131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XdYrx-0001z1-E9 for emacs-orgmode@gnu.org; Mon, 13 Oct 2014 02:12:34 -0400 Received: from hjh-e431.qq.com (unknown [113.109.17.166]) by esmtp4.qq.com (ESMTP) with SMTP id 0 for ; Mon, 13 Oct 2014 14:11:41 +0800 (CST) 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 have a task that I want to track using org-habit. I've spent about an hour looking through the manual and other sites, but so far the problem remains intractable. With org-habit, it's easy to track something that should be done on one particular day of the week: .+1w. It appears not to be easy to track something that should be done on two arbitrary days of the week. It's easy to schedule something for two specific days of the week using a sexp. But, org-habit (for sensible reasons) doesn't support sexps. I can also add multiple SCHEDULED lines. But org-habit doesn't work well with this either. ** TODO Update lesson gradesheet :Comp: SCHEDULED: <2014-10-13 Mon +1w> SCHEDULED: <2014-10-17 Fri +1w> :PROPERTIES: :STYLE: habit :LOGGING: TODO MAYBE INPROG MTG | DONE(!) POSTPONED :END: Now, if I mark this item DONE, org-habit moves *both* scheduled dates forward to next week, even though 10-17 is still in the future and it's neither needed nor desirable to advance it. That is, scheduled dates that are today or in the past should move up, while scheduled dates in the future should be left alone. I guess the issue with that would be that you couldn't set a task DONE earlier than scheduled. That's not an issue for this specific task, but maybe for others. I suppose the worst case is that I could create two "Update lesson gradesheet" entries, but that seems highly inelegant...? Thanks in advance for any advice. hjh