Skip to content

Commit

Permalink
Add: blocked predicate
Browse files Browse the repository at this point in the history
  • Loading branch information
akirak committed Feb 11, 2021
1 parent 208e103 commit 59beb87
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions org-ql.el
Original file line number Diff line number Diff line change
Expand Up @@ -1669,6 +1669,11 @@ parseable by `parse-time-string' which may omit the time value."
(org-ql--predicate-ts :from from :to to :regexp org-closed-time-regexp :match-group 1
:limit (line-end-position 2)))

(org-ql-defpred blocked ()
"Return non-nil if the entry is blocked."
:body
(org-entry-blocked-p))

(org-ql-defpred deadline (&key from to _on)
;; The underscore before `on' prevents "unused lexical variable"
;; warnings, because we pre-process that argument in a macro before
Expand Down

0 comments on commit 59beb87

Please sign in to comment.