From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Scope issue: "SCHEDULED/DEADLINE" in blocks are being evaluated (was: Recurring todos gets closed and not re-scheduled) Date: Sun, 17 Jan 2016 10:38:05 +0100 Message-ID: <2016-01-17T10-09-57@devnull.Karl-Voit.at> References: <2016-01-15T15-10-01@devnull.Karl-Voit.at> <84mvs6c1b4.fsf@gmail.com> Reply-To: Karl Voit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKjn1-0002Pq-HU for emacs-orgmode@gnu.org; Sun, 17 Jan 2016 04:38:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aKjmw-0001gp-Lt for emacs-orgmode@gnu.org; Sun, 17 Jan 2016 04:38:27 -0500 Received: from plane.gmane.org ([80.91.229.3]:40871) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKjmw-0001gd-Eo for emacs-orgmode@gnu.org; Sun, 17 Jan 2016 04:38:22 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aKjmq-0001Ol-I4 for emacs-orgmode@gnu.org; Sun, 17 Jan 2016 10:38:16 +0100 Received: from friends.grml.info ([136.243.234.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Jan 2016 10:38:16 +0100 Received: from news1142 by friends.grml.info with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Jan 2016 10:38:16 +0100 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 Hi Marco! * Marco Wahl wrote: > Hi! > > Karl Voit writes: > >> I recently updated Org to d85ff34086e5398b7c83cf66694f3f7d09695ce8 >> (git). >> >> When I mark following recurring todos as done, all of them gets >> marked as DONE and CLOSED. >> >> ,----[ examples before being marked as DONE ] >> | *** NEXT Test task with scheduled >> | SCHEDULED: <2016-01-17 Sun +1w> >> | :PROPERTIES: >> | :CREATED: [2016-01-15 Fri 15:06] >> | :END: >> | >> | *** NEXT Test task with deadline > > [...] > >> ,----[ examples after being marked as DONE ] >> | *** DONE Test task with scheduled >> | CLOSED: [2016-01-15 Fri 15:15] SCHEDULED: <2016-01-17 Sun +1w> >> | :PROPERTIES: >> | :CREATED: [2016-01-15 Fri 15:06] >> | :END: >> | :LOGBOOK: >> | - State "DONE" from "NEXT" [2016-01-15 Fri 15:15] >> | :END: >> | >> | *** DONE Test task with deadline > > [...] > >> The previous behavior was different: recurring todos got >> re-scheduled for the next iteration. I need this behavior back >> otherwise recurring todos are of no use to me. > > [...] > > Possibly you faced the same issue as stated in > http://permalink.gmane.org/gmane.emacs.orgmode/104179. > > This issue is fixed in the current git-version AFAICT. It was an issue > with the change to lexical-scoping. I recommend you to try the new > version. Thanks for your pointer. I upgraded to the most current git version and this issue is gone. Thanks very much! Unfortunately, this fix (or any other commit?) prevents my non-recurring tasks to be completed when I got "DEADLINE" or "SCHEDULED" in the body text within blocks or comments. So I guess the new scope is too generous. It's an edge-case but it should be fixed. When I do mark the following three example headers as done ... *** NEXT test with quote #+BEGIN_QUOTE ,----[ examples ] | DEADLINE: <2016-01-31 Sun +1w> `---- #+END_QUOTE *** NEXT test with example #+BEGIN_EXAMPLE ,----[ examples ] | DEADLINE: <2016-01-31 Sun +1w> `---- #+END_EXAMPLE *** NEXT test with : : ,----[ examples ] : | DEADLINE: <2016-01-31 Sun +1w> : `---- ... I get: *** NEXT test with quote :PROPERTIES: :CREATED: [2016-01-17 Sun 10:36] :LAST_REPEAT: [2016-01-17 Sun 10:36] :END: :LOGBOOK: - State "DONE" from "NEXT" [2016-01-17 Sun 10:36] :END: #+BEGIN_QUOTE ,----[ examples ] | DEADLINE: <2016-02-07 Sun +1w> `---- #+END_QUOTE *** NEXT test with example :PROPERTIES: :CREATED: [2016-01-17 Sun 10:36] :LAST_REPEAT: [2016-01-17 Sun 10:36] :END: :LOGBOOK: - State "DONE" from "NEXT" [2016-01-17 Sun 10:36] :END: #+BEGIN_EXAMPLE ,----[ examples ] | DEADLINE: <2016-02-07 Sun +1w> `---- #+END_EXAMPLE *** NEXT test with : :PROPERTIES: :CREATED: [2016-01-17 Sun 10:36] :LAST_REPEAT: [2016-01-17 Sun 10:36] :END: :LOGBOOK: - State "DONE" from "NEXT" [2016-01-17 Sun 10:36] :END: : ,----[ examples ] : | DEADLINE: <2016-02-07 Sun +1w> : `---- -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > get Memacs from https://github.com/novoid/Memacs < https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github