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

@ -560,6 +560,9 @@ Simple links may also be written manually in either sexp or non-sexp form, like:
+ Timestamps with day-of-the-week abbreviations are matched more flexibly (allowing, e.g. a period in French locales). (See [[https://github.com/alphapapa/org-ql/discussions/429][#429]], [[https://github.com/alphapapa/org-ql/issues/432][#432]]. Thanks to [[https://github.com/neurolit][Florian D.]] for reporting.) + Timestamps with day-of-the-week abbreviations are matched more flexibly (allowing, e.g. a period in French locales). (See [[https://github.com/alphapapa/org-ql/discussions/429][#429]], [[https://github.com/alphapapa/org-ql/issues/432][#432]]. Thanks to [[https://github.com/neurolit][Florian D.]] for reporting.)
+ Command ~org-ql-search~ did not narrow properly when called interactively. + Command ~org-ql-search~ did not narrow properly when called interactively.
*Compatibility*
+ Dynamic blocks work with Org 9.7. ([[https://github.com/alphapapa/org-ql/issues/431][#431]]. Thanks to [[https://github.com/jezcope][Jez Cope]] for reporting.)
** 0.8.6 ** 0.8.6
*Fixes* *Fixes*

View file

@ -347,7 +347,8 @@ this (must be a single line in the Org buffer):
(org-element-property (intern (concat ":" (upcase property))) element))))) (org-element-property (intern (concat ":" (upcase property))) element)))))
(elements (org-ql-query :from (current-buffer) (elements (org-ql-query :from (current-buffer)
:where query :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))) :order-by sort)))
(when take (when take
(setf elements (cl-etypecase take (setf elements (cl-etypecase take

View file

@ -1097,6 +1097,11 @@ File: README.info, Node: 087-pre, Next: 086, Up: Changelog
• Command org-ql-search did not narrow properly when called • Command org-ql-search did not narrow properly when called
interactively. interactively.
*Compatibility*
• Dynamic blocks work with Org 9.7. (#431
(https://github.com/alphapapa/org-ql/issues/431). Thanks to Jez
Cope (https://github.com/jezcope) for reporting.)
 
File: README.info, Node: 086, Next: 085, Prev: 087-pre, Up: Changelog File: README.info, Node: 086, Next: 085, Prev: 087-pre, Up: Changelog
@ -2025,47 +2030,47 @@ Node: Links38911
Node: Tips39598 Node: Tips39598
Node: Changelog39922 Node: Changelog39922
Node: 087-pre40844 Node: 087-pre40844
Node: 08641879 Node: 08642072
Node: 08542117 Node: 08542310
Node: 08442773 Node: 08442966
Node: 08343225 Node: 08343418
Node: 08243566 Node: 08243759
Node: 08143959 Node: 08144152
Node: 0844380 Node: 0844573
Node: 07447104 Node: 07447297
Node: 07347327 Node: 07347520
Node: 07248061 Node: 07248254
Node: 07148982 Node: 07149175
Node: 0749793 Node: 0749986
Node: 06352659 Node: 06352852
Node: 06253192 Node: 06253385
Node: 06153499 Node: 06153692
Node: 0654069 Node: 0654262
Node: 05257125 Node: 05257318
Node: 05157427 Node: 05157620
Node: 0557852 Node: 0558045
Node: 04959383 Node: 04959576
Node: 04859665 Node: 04859858
Node: 04760014 Node: 04760207
Node: 04660423 Node: 04660616
Node: 04560831 Node: 04561024
Node: 04461192 Node: 04461385
Node: 04361551 Node: 04361744
Node: 04261754 Node: 04261947
Node: 04161915 Node: 04162108
Node: 0462162 Node: 0462355
Node: 03266263 Node: 03266456
Node: 03166666 Node: 03166859
Node: 0366863 Node: 0367056
Node: 02370163 Node: 02370356
Node: 02270397 Node: 02270590
Node: 02170677 Node: 02170870
Node: 0270882 Node: 0271075
Node: 0174960 Node: 0175153
Node: Notes75061 Node: Notes75254
Node: Comparison with Org Agenda searches75223 Node: Comparison with Org Agenda searches75416
Node: org-sidebar76112 Node: org-sidebar76305
Node: License76391 Node: License76584
 
End Tag Table End Tag Table