Fix: (org-dblock-write:org-ql) Resolve element properties

Fixes <https://github.com/alphapapa/org-ql/issues/431>.

Reported-by: Jez Cope <https://github.com/jezcope>
This commit is contained in:
Adam Porter 2024-06-26 11:28:11 -05:00
parent ffc3477013
commit b362dd68b0
3 changed files with 51 additions and 42 deletions

View file

@ -347,7 +347,8 @@ this (must be a single line in the Org buffer):
(org-element-property (intern (concat ":" (upcase property))) element)))))
(elements (org-ql-query :from (current-buffer)
:where query
:select '(org-element-headline-parser (line-end-position))
:select '(org-ql-view--resolve-element-properties
(org-element-headline-parser (line-end-position)))
:order-by sort)))
(when take
(setf elements (cl-etypecase take