Hi Karl,

> Examples:
>
>      * Top-Heading
>
>      ** TODO Here I invoke org-todo to DONE
>      :PROPERTIES:
>      :TRIGGER: 2017-12-03-target(TODO)
>      :END:
>
>      ** This should be changed to TODO
>      :PROPERTIES:
>      :ID: 2017-12-03-target
>      :END:
>
> ... this is working (i.e., "This should be changed to TODO" gets its
> TODO keyword).
>
>      * Top-Heading with process indicator [0/2]
>
>      ** TODO Here I invoke org-todo to DONE
>      :PROPERTIES:
>      :TRIGGER: 2017-12-03-target(TODO)
>      :END:
>
>      ** This should be changed to TODO
>      :PROPERTIES:
>      :ID: 2017-12-03-target
>      :END:
>
> ... this is *not* working.
>
> However, anticipating the wrong position:
>
>      * Top-Heading with process indicator [0/2]
>      :PROPERTIES:
>      :TRIGGER: 2017-12-03-target(TODO)
>      :END:
>
>      ** TODO Here I invoke org-todo to DONE
>      :PROPERTIES:
>      :TRIGGER: 2017-12-03-target(TODO)
>      :END:
>
>      ** This should be changed to TODO
>      :PROPERTIES:
>      :ID: 2017-12-03-target
>      :END:
>
> ... is working. And according to this:
>
>      * Top-Heading with process indicator [0/2]
>      :PROPERTIES:
>      :TRIGGER: 2017-12-03-target(TODO)
>      :END:
>
>      ** TODO Here I invoke org-todo to DONE
>
>      ** This should be changed to TODO
>      :PROPERTIES:
>      :ID: 2017-12-03-target
>      :END:
>
> ... this is also working. So the update of the process indicator
> causes the wrong property drawer to be parsed for the relevant
> TRIGGER property.
>
> Contrary to my previous assumption, this is issue is *not* related
> to big and small files. This is purely related to the existing or
> missing process indicator of the upper-level heading.
>
> I guess I have found the origin of the bug.


​I'm not able to reproduce what you are seeing above.​ Even instances with
a progress indicator correctly triggered if the TRIGGER property was set.
Your final example updates the "Here I invoke org-todo to DONE" entry to
DONE and doesn't touch any other heading for me.

I did see an issue with triggered headings not honouring note logging when
the todo was set to DONE, but I haven't looked any closer at it just yet.

What version of org-mode are you running? If you are using the git version
can you pull the latest on maint. I performed my testing on maint.


> Can you please do me the favor and fix it for me. I feel

extraordinary proud of me having dig into elisp (which I don't know
> how to code mostly) and found the bug ;-)
>
> However, I can't fix it on my own :-(
>

​Even just being able to dig through some code and debug can be a major
benefit. :-)


> Why did nobody tell me about org-edna yet? ;-)
>

​I found out on the mailing list as well. Doubt I would have even stumbled
upon it otherwise.
​
Cheers,

Adrian

Reply via email to