Fix: (org-ql--query-sexp-to-string) Ancestors, etc. queries
This commit is contained in:
parent
dd30f07942
commit
89ff02a150
1 changed files with 5 additions and 1 deletions
|
|
@ -1778,7 +1778,11 @@ Multiple predicates are combined with BOOLEAN."
|
|||
If QUERY can't be converted to a string, return nil."
|
||||
;; This started out pretty simple...but at least it's not just one long function, right?
|
||||
(cl-labels ((complex-p (query)
|
||||
(or (contains-p 'or query)))
|
||||
(or (contains-p 'or query)
|
||||
(contains-p 'ancestors query)
|
||||
(contains-p 'children query)
|
||||
(contains-p 'descendants query)
|
||||
(contains-p 'parent query)))
|
||||
(contains-p (symbol list)
|
||||
(cl-loop for element in list
|
||||
thereis (or (eq symbol element)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue