Fix: (org-ql--def-query-string-to-sexp-fn) Updated for peg v1.0.1

Fixes #314, fixes #316.  Thanks to Akira Komamura (@akirak) and Joon
Ro (@joonro) for reporting.

Instead of `[blank]` in this PEX, it used to be `(syntax-class
whitespace)`, which worked fine with peg v1.0.  Then
<https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59345> was filed and
resulted in the release of peg v1.0.1, after which that no longer
worked.  As best I can tell from reading the discussion, `[blank]` and
`(syntax-class whitespace)` should behave the same way, yet here they
do not: with peg v1.0.1, only `[blank]` works.  Why, I do not know; I
only tried it because I could find no explanation for the broken
behavior, and luckily, it works.  Maybe it's due to the use of
`(syntax-class whitespace)` later in the `pexs`; but since it finally
works again, let's take the victory as-is.
This commit is contained in:
Adam Porter 2022-12-08 19:50:37 -06:00
parent 85aee42fae
commit 9f00fa3890
3 changed files with 39 additions and 33 deletions

View file

@ -983,7 +983,13 @@ File: README.info, Node: 063-pre, Next: 062, Up: Changelog
5.1 0.6.3-pre
=============
Nothing yet.
*Fixed*
• Non-sexp query parsing with updated version 1.0.1 of the peg
package. (Fixes #314
(https://github.com/alphapapa/org-ql/issues/314), #316
(https://github.com/alphapapa/org-ql/issues/316). Thanks to Akira
Komamura (https://github.com/akirak) and Joon Ro
(https://github.com/joonro) for reporting.)

File: README.info, Node: 062, Next: 061, Prev: 063-pre, Up: Changelog
@ -1628,34 +1634,34 @@ Node: Links35679
Node: Tips36366
Node: Changelog36690
Node: 063-pre37461
Node: 06237569
Node: 06137878
Node: 0638446
Node: 05241500
Node: 05141800
Node: 0542223
Node: 04943752
Node: 04844032
Node: 04744379
Node: 04644788
Node: 04545196
Node: 04445557
Node: 04345916
Node: 04246119
Node: 04146280
Node: 0446527
Node: 03250628
Node: 03151031
Node: 0351228
Node: 02354528
Node: 02254762
Node: 02155042
Node: 0255247
Node: 0159325
Node: Notes59426
Node: Comparison with Org Agenda searches59588
Node: org-sidebar60477
Node: License60756
Node: 06237900
Node: 06138209
Node: 0638777
Node: 05241831
Node: 05142131
Node: 0542554
Node: 04944083
Node: 04844363
Node: 04744710
Node: 04645119
Node: 04545527
Node: 04445888
Node: 04346247
Node: 04246450
Node: 04146611
Node: 0446858
Node: 03250959
Node: 03151362
Node: 0351559
Node: 02354859
Node: 02255093
Node: 02155373
Node: 0255578
Node: 0159656
Node: Notes59757
Node: Comparison with Org Agenda searches59919
Node: org-sidebar60808
Node: License61087

End Tag Table