Merge: 0.2.1
This commit is contained in:
commit
deb78e51c7
3 changed files with 13 additions and 1 deletions
|
|
@ -472,6 +472,11 @@ Expands into a call to ~org-ql-select~ with the same arguments. For convenience
|
||||||
*Changed*
|
*Changed*
|
||||||
+ Predicate =heading= now accepts multiple regexps.
|
+ Predicate =heading= now accepts multiple regexps.
|
||||||
|
|
||||||
|
** 0.2.1
|
||||||
|
|
||||||
|
*Fixed*
|
||||||
|
+ =(descendants)= selector matched against parent heading instead of only descendants.
|
||||||
|
|
||||||
** 0.2
|
** 0.2
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:ID: 67be09f9-e959-4333-9be2-93ad8f458fbe
|
:ID: 67be09f9-e959-4333-9be2-93ad8f458fbe
|
||||||
|
|
|
||||||
|
|
@ -748,6 +748,7 @@ Or, when possible, fix the problem."
|
||||||
(save-restriction
|
(save-restriction
|
||||||
(org-narrow-to-subtree)
|
(org-narrow-to-subtree)
|
||||||
(when (org-goto-first-child)
|
(when (org-goto-first-child)
|
||||||
|
(narrow-to-region (point) (point-max))
|
||||||
(catch 'found
|
(catch 'found
|
||||||
(org-ql-select (current-buffer)
|
(org-ql-select (current-buffer)
|
||||||
query
|
query
|
||||||
|
|
|
||||||
|
|
@ -251,7 +251,13 @@ RESULTS should be a list of strings as returned by
|
||||||
'("Test data" "Recurring")))
|
'("Test data" "Recurring")))
|
||||||
(org-ql-it "with granddescendants query"
|
(org-ql-it "with granddescendants query"
|
||||||
(org-ql-expect ((descendants (descendants "moon")))
|
(org-ql-expect ((descendants (descendants "moon")))
|
||||||
'("Test data" "Take over the universe" "Take over the moon" "Code"))))
|
'("Test data" "Take over the universe")))
|
||||||
|
(org-ql-it "with query that should not match parent"
|
||||||
|
;; This test would fail if the `descendants' predicate did not properly exclude
|
||||||
|
;; the parent heading by narrowing the buffer to begin at the first child.
|
||||||
|
(org-ql-expect ((and (descendants (todo "WAITING"))
|
||||||
|
(not (descendants (todo "TODO" "NEXT")))))
|
||||||
|
'("Take over the moon"))))
|
||||||
|
|
||||||
(describe "(clocked)"
|
(describe "(clocked)"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue