Skip to content

Commit

Permalink
Fix: (org-dblock-write:org-ql) Resolve element properties
Browse files Browse the repository at this point in the history
Fixes <#431>.

Reported-by: Jez Cope <https://github.com/jezcope>
  • Loading branch information
alphapapa committed Jun 26, 2024
1 parent ffc3477 commit b362dd6
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 42 deletions.
3 changes: 3 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -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.)
+ 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

*Fixes*
Expand Down
3 changes: 2 additions & 1 deletion org-ql-search.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
87 changes: 46 additions & 41 deletions org-ql.info
Original file line number Diff line number Diff line change
Expand Up @@ -1097,6 +1097,11 @@ File: README.info, Node: 087-pre, Next: 086, Up: Changelog
• Command ‘org-ql-search’ did not narrow properly when called
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

Expand Down Expand Up @@ -2025,47 +2030,47 @@ Node: Links38911
Node: Tips39598
Node: Changelog39922
Node: 087-pre40844
Node: 08641879
Node: 08542117
Node: 08442773
Node: 08343225
Node: 08243566
Node: 08143959
Node: 0844380
Node: 07447104
Node: 07347327
Node: 07248061
Node: 07148982
Node: 0749793
Node: 06352659
Node: 06253192
Node: 06153499
Node: 0654069
Node: 05257125
Node: 05157427
Node: 0557852
Node: 04959383
Node: 04859665
Node: 04760014
Node: 04660423
Node: 04560831
Node: 04461192
Node: 04361551
Node: 04261754
Node: 04161915
Node: 0462162
Node: 03266263
Node: 03166666
Node: 0366863
Node: 02370163
Node: 02270397
Node: 02170677
Node: 0270882
Node: 0174960
Node: Notes75061
Node: Comparison with Org Agenda searches75223
Node: org-sidebar76112
Node: License76391
Node: 08642072
Node: 08542310
Node: 08442966
Node: 08343418
Node: 08243759
Node: 08144152
Node: 0844573
Node: 07447297
Node: 07347520
Node: 07248254
Node: 07149175
Node: 0749986
Node: 06352852
Node: 06253385
Node: 06153692
Node: 0654262
Node: 05257318
Node: 05157620
Node: 0558045
Node: 04959576
Node: 04859858
Node: 04760207
Node: 04660616
Node: 04561024
Node: 04461385
Node: 04361744
Node: 04261947
Node: 04162108
Node: 0462355
Node: 03266456
Node: 03166859
Node: 0367056
Node: 02370356
Node: 02270590
Node: 02170870
Node: 0271075
Node: 0175153
Node: Notes75254
Node: Comparison with Org Agenda searches75416
Node: org-sidebar76305
Node: License76584

End Tag Table

Expand Down

0 comments on commit b362dd6

Please sign in to comment.