From 25f964dfcb723aa573f30217b079fba42fcf9d00 Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Wed, 17 Jul 2019 12:04:28 -0500 Subject: [PATCH] Fix: (--date-type-p) Handle ranges I meant to do this in c5599a6, but I omitted the range type symbol when I rewrote the selector and functions. This should work now. Thanks to @codygman, @swflint, and @vikasrawal. --- README.org | 3 +++ org-ql.el | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.org b/README.org index 698197d..6997688 100644 --- a/README.org +++ b/README.org @@ -236,6 +236,9 @@ If ~MARKERS~ is non-nil, ~org-agenda-ng--add-markers~ is used to add markers to *Changed* + ~(regexp)~ selector accepts multiple regexps to test. +*Fixed* ++ Handle date ranges in date-based selectors. (Thanks to [[https://github.com/codygman][Cody Goodman]], [[https://github.com/swflint][Samuel W. Flint]], and [[https://github.com/vikasrawal][Vikas Rawal]].) + *Compatibility* + Fixes for compatibility with Org 9.2. (Thanks to [[https://github.com/ataias][Ataias Pereira Reis]] and [[https://github.com/dakra][Daniel Kraus]].) diff --git a/org-ql.el b/org-ql.el index 04c81ca..0360a28 100644 --- a/org-ql.el +++ b/org-ql.el @@ -735,7 +735,7 @@ like one returned by `date-to-day'." (string (date-to-day (concat target-date " 00:00"))) (integer target-date)))) (pcase (org-element-property :type date-element) - ((or 'active 'inactive) + ((or 'active 'inactive 'active-range 'inactive-range) (funcall comparator (org-time-string-to-absolute (org-element-timestamp-interpreter date-element 'ignore))