From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Re: org-depend: TRIGGER XYZ(KEYWORD) not working Date: Mon, 4 Dec 2017 20:21:30 +0100 Message-ID: <2017-12-04T20-17-40@devnull.Karl-Voit.at> References: <2017-11-19T10-47-05@devnull.Karl-Voit.at> <2017-12-03T18-47-08@devnull.Karl-Voit.at> Reply-To: Karl Voit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLwJO-0005mY-JW for emacs-orgmode@gnu.org; Mon, 04 Dec 2017 14:21:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLwJK-0006ND-LI for emacs-orgmode@gnu.org; Mon, 04 Dec 2017 14:21:54 -0500 Received: from [195.159.176.226] (port=60276 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eLwJK-0006Mi-E1 for emacs-orgmode@gnu.org; Mon, 04 Dec 2017 14:21:50 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eLwJ4-0005IO-R5 for emacs-orgmode@gnu.org; Mon, 04 Dec 2017 20:21:34 +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" To: emacs-orgmode@gnu.org Hi Adrian, * Adrian Bradd wrote: > >> 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. Damnit. This is because I removed the wrong progress indicator from my examples before posting. You have to change all "[0/2]" with "[%]" and then you see the issue I described. It seems to be the case that [/] do work whereas [%] do cause the described malfunctional behaviour. I was using both and did remove the wrong one. > 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. Oh. > 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. I was using git maint from a couple of days ago and I just updated the repository. > =E2=80=8BEven just being able to dig through some code and debug can be a m= > ajor > benefit. :-) And I got the feeling that I learned more about how the elisp code is working. I should do more debugging even for working code ;-) -- get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode: > get Memacs from https://github.com/novoid/Memacs < Personal Information Management > http://Karl-Voit.at/tags/pim/ Emacs-related > http://Karl-Voit.at/tags/emacs/