#StackBounty: #org-mode Filtering tasks based on inherited SCHEDULED

Bounty: 50

The SCHEDULED property does not respect task inheritance. This is a notable omission but is known. For task prioritization, I have a helper function which performs inheritance manually:

;;; called with `property=SCHEDULED' in `user-defined-up'
(defun task-inherited-property (org-marker property)
    (switch-to-buffer (marker-buffer org-marker))
    (goto-char org-marker)
    (until-nil org-up-heading-safe)
    (org-entry-get (point) property)))

;;; helper macros
(defmacro until-nil (action)
  `(until (null (,action)) nil))
(defmacro until (test &rest body)
  (declare (indent defun))
  `(while (not ,test) ,@body))

However, I do not know how to apply this in filtering. Right now I use (setq org-agenda-todo-ignore-scheduled 'future) but I want something that respects SCHEDULED inheritance too. How can I do this?

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.