emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
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: Tue, 5 Dec 2017 21:51:23 -0500	[thread overview]
Message-ID: <CAMYmr8w3LS3Ck1wqQmY1ZhwHJOnEZ=k7VWquiU0c+foo2SzY0w@mail.gmail.com> (raw)
In-Reply-To: <2017-12-04T20-17-40@devnull.Karl-Voit.at>

[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]

​Hi Karl,​

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 have found the issue, but haven't had time to patch it. It actually does
happen with both [%] and [/].

org-todo is using a point to pass the beginning of the heading to
org-depend instead of a marker. As such, when characters are added to the
statistics in the parent heading the point shifts up to the line above the
heading and when (org-entry-get pos "TRIGGER") runs it searches the heading
above it, which is why the trigger works correctly if you populate the
parent heading property.

change-plist looks llike it is used in a few other functions as well. I'll
have to see if using a marker breaks them.

Cheers,

Adrian

[-- Attachment #2: Type: text/html, Size: 1846 bytes --]

      reply	other threads:[~2017-12-06  2:51 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
2017-12-04 19:21       ` Karl Voit
2017-12-06  2:51         ` Adrian Bradd [this message]

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMYmr8w3LS3Ck1wqQmY1ZhwHJOnEZ=k7VWquiU0c+foo2SzY0w@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).