Fix `org-todo'
* org.el (org-todo): Use marker `change-plist' position property to permit triggering through "org-depend.el" with parent heading statistics. When TODO statistics in parent headings were updated it shifted the point defining the :position property in `change-plist' causing headlines with TRIGGER properties to fail to evaluate. TINYCHANGE
This commit is contained in:
parent
f2c712a6a4
commit
ff0f3e4723
|
@ -12388,7 +12388,7 @@ When called through ELisp, arg is also interpreted in the following way:
|
||||||
(or (looking-at (concat " +" org-todo-regexp "\\( +\\|[ \t]*$\\)"))
|
(or (looking-at (concat " +" org-todo-regexp "\\( +\\|[ \t]*$\\)"))
|
||||||
(looking-at "\\(?: *\\|[ \t]*$\\)"))
|
(looking-at "\\(?: *\\|[ \t]*$\\)"))
|
||||||
(let* ((match-data (match-data))
|
(let* ((match-data (match-data))
|
||||||
(startpos (point-at-bol))
|
(startpos (copy-marker (line-beginning-position)))
|
||||||
(logging (save-match-data (org-entry-get nil "LOGGING" t t)))
|
(logging (save-match-data (org-entry-get nil "LOGGING" t t)))
|
||||||
(org-log-done org-log-done)
|
(org-log-done org-log-done)
|
||||||
(org-log-repeat org-log-repeat)
|
(org-log-repeat org-log-repeat)
|
||||||
|
|
Loading…
Reference in New Issue