From: Adrian Bradd <adrian.bradd@gmail.com>
To: Karl Voit <news1142@karl-voit.at>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: org-depend: TRIGGER XYZ(KEYWORD) not working
Date: Sun, 3 Dec 2017 21:42:00 -0500 [thread overview]
Message-ID: <CAMYmr8yqKd22byz0TF_99Z0Nst6TXe8B7FQ5FoAbcTThtpK72g@mail.gmail.com> (raw)
In-Reply-To: <2017-12-03T18-47-08@devnull.Karl-Voit.at>
[-- Attachment #1: Type: text/plain, Size: 2950 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 4615 bytes --]
next prev parent reply other threads:[~2017-12-04 2:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-19 10:05 org-depend: TRIGGER XYZ(KEYWORD) not working Karl Voit
2017-11-19 10:18 ` Karl Voit
2017-12-03 15:13 ` Adrian Bradd
2017-12-03 18:38 ` Karl Voit
2017-12-04 2:42 ` Adrian Bradd [this message]
2017-12-04 19:21 ` Karl Voit
2017-12-06 2:51 ` Adrian Bradd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMYmr8yqKd22byz0TF_99Z0Nst6TXe8B7FQ5FoAbcTThtpK72g@mail.gmail.com \
--to=adrian.bradd@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=news1142@karl-voit.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.