[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Scope issue: "SCHEDULED/DEADLINE" in blocks are being evaluated (was
From: |
Karl Voit |
Subject: |
[O] 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 |
User-agent: |
slrn/pre1.0.0-18 (Linux) |
Hi Marco!
* Marco Wahl <address@hidden> wrote:
> Hi!
>
> Karl Voit <address@hidden> 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