Skip to content

Commit e4f9281

Browse files
committed
Merge: 0.4.6
2 parents c847afe + ee81685 commit e4f9281

File tree

3 files changed

+94
-58
lines changed

3 files changed

+94
-58
lines changed

README.org

+5
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,11 @@ Expands into a call to ~org-ql-select~ with the same arguments. For convenience
412412
*Changed*
413413
+ Binding to refresh search/view buffers changed to =r=.
414414

415+
** 0.4.6
416+
417+
*Fixed*
418+
+ Compatibility with newer versions of the =peg= library, which removed a macro used by this package. (Fixes [[https://github.com/alphapapa/org-ql/issues/75][#75]]. Thanks to [[https://github.com/novoid][Karl Voit]] and [[https://github.com/karlicoss][@karlicoss]] for reporting.)
419+
415420
** 0.4.5
416421

417422
*Fixed*

org-ql.el

+16-1
Original file line numberDiff line numberDiff line change
@@ -1671,6 +1671,21 @@ element should be a regexp string."
16711671
(defvar peg-errors nil)
16721672
(defvar peg-stack nil)
16731673

1674+
(defmacro org-ql--peg-parse-string (rules string &optional noerror)
1675+
"Parse STRING according to RULES.
1676+
If NOERROR is non-nil, push nil resp. t if the parse failed
1677+
resp. succeded instead of signaling an error."
1678+
;; Unfortunately, this macro was moved to peg-tests.el, so we copy it here.
1679+
`(with-temp-buffer
1680+
(insert ,string)
1681+
(goto-char (point-min))
1682+
,(if noerror
1683+
(let ((entry (make-symbol "entry"))
1684+
(start (caar rules)))
1685+
`(peg-parse (entry (or (and ,start `(-- t)) ""))
1686+
. ,rules))
1687+
`(peg-parse . ,rules))))
1688+
16741689
(cl-eval-when (compile load eval)
16751690
;; This `eval-when' is necessary, otherwise the macro does not define
16761691
;; the function correctly, apparently because `org-ql-predicates'
@@ -1697,7 +1712,7 @@ Builds the PEG expression using predicates defined in
16971712
"Return query parsed from plain query string INPUT.
16981713
Multiple predicates are combined with BOOLEAN."
16991714
(unless (s-blank-str? input)
1700-
(let* ((query (peg-parse-string
1715+
(let* ((query (org-ql--peg-parse-string
17011716
((query (+ term
17021717
(opt (+ (syntax-class whitespace) (any)))))
17031718
(term (or (and negation (list positive-term)

org-ql.info

+73-57
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ Functions / Macros
6464
Changelog
6565

6666
* 0.5-pre: 05-pre.
67+
* 0.4.6: 046.
6768
* 0.4.5: 045.
6869
* 0.4.4: 044.
6970
* 0.4.3: 043.
@@ -722,6 +723,7 @@ releases.
722723
* Menu:
723724

724725
* 0.5-pre: 05-pre.
726+
* 0.4.6: 046.
725727
* 0.4.5: 045.
726728
* 0.4.4: 044.
727729
* 0.4.3: 043.
@@ -738,7 +740,7 @@ releases.
738740
* 0.1: 01.
739741

740742

741-
File: README.info, Node: 05-pre, Next: 045, Up: Changelog
743+
File: README.info, Node: 05-pre, Next: 046, Up: Changelog
742744

743745
5.1 0.5-pre
744746
===========
@@ -754,9 +756,22 @@ File: README.info, Node: 05-pre, Next: 045, Up: Changelog
754756
• Binding to refresh search/view buffers changed to r.
755757

756758

757-
File: README.info, Node: 045, Next: 044, Prev: 05-pre, Up: Changelog
759+
File: README.info, Node: 046, Next: 045, Prev: 05-pre, Up: Changelog
758760

759-
5.2 0.4.5
761+
5.2 0.4.6
762+
=========
763+
764+
*Fixed*
765+
• Compatibility with newer versions of the peg library, which removed
766+
a macro used by this package. (Fixes #75
767+
(https://github.com/alphapapa/org-ql/issues/75). Thanks to Karl
768+
Voit (https://github.com/novoid) and @karlicoss
769+
(https://github.com/karlicoss) for reporting.)
770+
771+

772+
File: README.info, Node: 045, Next: 044, Prev: 046, Up: Changelog
773+
774+
5.3 0.4.5
760775
=========
761776

762777
*Fixed*
@@ -768,7 +783,7 @@ File: README.info, Node: 045, Next: 044, Prev: 05-pre, Up: Changelog
768783

769784
File: README.info, Node: 044, Next: 043, Prev: 045, Up: Changelog
770785

771-
5.3 0.4.4
786+
5.4 0.4.4
772787
=========
773788

774789
*Fixed*
@@ -780,7 +795,7 @@ File: README.info, Node: 044, Next: 043, Prev: 045, Up: Changelog
780795

781796
File: README.info, Node: 043, Next: 042, Prev: 044, Up: Changelog
782797

783-
5.4 0.4.3
798+
5.5 0.4.3
784799
=========
785800

786801
*Fixed*
@@ -790,7 +805,7 @@ File: README.info, Node: 043, Next: 042, Prev: 044, Up: Changelog
790805

791806
File: README.info, Node: 042, Next: 041, Prev: 043, Up: Changelog
792807

793-
5.5 0.4.2
808+
5.6 0.4.2
794809
=========
795810

796811
*Fixed*
@@ -799,7 +814,7 @@ File: README.info, Node: 042, Next: 041, Prev: 043, Up: Changelog
799814

800815
File: README.info, Node: 041, Next: 04, Prev: 042, Up: Changelog
801816

802-
5.6 0.4.1
817+
5.7 0.4.1
803818
=========
804819

805820
*Fixed*
@@ -809,7 +824,7 @@ File: README.info, Node: 041, Next: 04, Prev: 042, Up: Changelog
809824

810825
File: README.info, Node: 04, Next: 032, Prev: 041, Up: Changelog
811826

812-
5.7 0.4
827+
5.8 0.4
813828
=======
814829

815830
_Note:_ The next release, 0.5, may include changes which will require
@@ -890,7 +905,7 @@ as they will be pushed to the master branch when ready.
890905

891906
File: README.info, Node: 032, Next: 031, Prev: 04, Up: Changelog
892907

893-
5.8 0.3.2
908+
5.9 0.3.2
894909
=========
895910

896911
*Fixed*
@@ -903,8 +918,8 @@ File: README.info, Node: 032, Next: 031, Prev: 04, Up: Changelog
903918

904919
File: README.info, Node: 031, Next: 03, Prev: 032, Up: Changelog
905920

906-
5.9 0.3.1
907-
=========
921+
5.10 0.3.1
922+
==========
908923

909924
*Fixed*
910925
• Compatibility with Org 9.2. Thanks to Brian Leung
@@ -913,7 +928,7 @@ File: README.info, Node: 031, Next: 03, Prev: 032, Up: Changelog
913928

914929
File: README.info, Node: 03, Next: 023, Prev: 031, Up: Changelog
915930

916-
5.10 0.3
931+
5.11 0.3
917932
========
918933

919934
*Added*
@@ -978,7 +993,7 @@ File: README.info, Node: 03, Next: 023, Prev: 031, Up: Changelog
978993

979994
File: README.info, Node: 023, Next: 022, Prev: 03, Up: Changelog
980995

981-
5.11 0.2.3
996+
5.12 0.2.3
982997
==========
983998

984999
*Fixed*
@@ -988,7 +1003,7 @@ File: README.info, Node: 023, Next: 022, Prev: 03, Up: Changelog
9881003

9891004
File: README.info, Node: 022, Next: 021, Prev: 023, Up: Changelog
9901005

991-
5.12 0.2.2
1006+
5.13 0.2.2
9921007
==========
9931008

9941009
*Fixed*
@@ -999,7 +1014,7 @@ File: README.info, Node: 022, Next: 021, Prev: 023, Up: Changelog
9991014

10001015
File: README.info, Node: 021, Next: 02, Prev: 022, Up: Changelog
10011016

1002-
5.13 0.2.1
1017+
5.14 0.2.1
10031018
==========
10041019

10051020
*Fixed*
@@ -1009,7 +1024,7 @@ File: README.info, Node: 021, Next: 02, Prev: 022, Up: Changelog
10091024

10101025
File: README.info, Node: 02, Next: 01, Prev: 021, Up: Changelog
10111026

1012-
5.14 0.2
1027+
5.15 0.2
10131028
========
10141029

10151030
*Added*
@@ -1092,7 +1107,7 @@ File: README.info, Node: 02, Next: 01, Prev: 021, Up: Changelog
10921107

10931108
File: README.info, Node: 01, Prev: 02, Up: Changelog
10941109

1095-
5.15 0.1
1110+
5.16 0.1
10961111
========
10971112

10981113
First tagged release.
@@ -1150,46 +1165,47 @@ GPLv3
11501165

11511166
Tag Table:
11521167
Node: Top225
1153-
Node: Contents1497
1154-
Node: Screenshots1620
1155-
Node: Installation1738
1156-
Node: Quelpa2376
1157-
Node: Usage2819
1158-
Node: Commands3168
1159-
Node: org-ql-search3641
1160-
Node: helm-org-ql5355
1161-
Node: org-ql-view5767
1162-
Node: org-ql-view-sidebar6267
1163-
Node: org-ql-view-recent-items6623
1164-
Node: org-ql-sparse-tree7107
1165-
Node: Queries7907
1166-
Node: Non-sexp query syntax8815
1167-
Node: General predicates10522
1168-
Node: Ancestor/descendant predicates15737
1169-
Node: Date/time predicates16865
1170-
Node: Functions / Macros19520
1171-
Node: Agenda-like views19753
1172-
Node: Listing / acting-on results21158
1173-
Node: Changelog25760
1174-
Node: 05-pre26384
1175-
Node: 04526748
1176-
Node: 04427110
1177-
Node: 04327467
1178-
Node: 04227662
1179-
Node: 04127821
1180-
Node: 0428060
1181-
Node: 03231991
1182-
Node: 03132368
1183-
Node: 0332563
1184-
Node: 02335538
1185-
Node: 02235766
1186-
Node: 02136034
1187-
Node: 0236233
1188-
Node: 0140268
1189-
Node: Notes40369
1190-
Node: Comparison with Org Agenda searches40531
1191-
Node: org-sidebar41403
1192-
Node: License41682
1168+
Node: Contents1512
1169+
Node: Screenshots1635
1170+
Node: Installation1753
1171+
Node: Quelpa2391
1172+
Node: Usage2834
1173+
Node: Commands3183
1174+
Node: org-ql-search3656
1175+
Node: helm-org-ql5370
1176+
Node: org-ql-view5782
1177+
Node: org-ql-view-sidebar6282
1178+
Node: org-ql-view-recent-items6638
1179+
Node: org-ql-sparse-tree7122
1180+
Node: Queries7922
1181+
Node: Non-sexp query syntax8830
1182+
Node: General predicates10537
1183+
Node: Ancestor/descendant predicates15752
1184+
Node: Date/time predicates16880
1185+
Node: Functions / Macros19535
1186+
Node: Agenda-like views19768
1187+
Node: Listing / acting-on results21173
1188+
Node: Changelog25775
1189+
Node: 05-pre26414
1190+
Node: 04626778
1191+
Node: 04527181
1192+
Node: 04427540
1193+
Node: 04327897
1194+
Node: 04228092
1195+
Node: 04128251
1196+
Node: 0428490
1197+
Node: 03232421
1198+
Node: 03132798
1199+
Node: 0332995
1200+
Node: 02335970
1201+
Node: 02236198
1202+
Node: 02136466
1203+
Node: 0236665
1204+
Node: 0140700
1205+
Node: Notes40801
1206+
Node: Comparison with Org Agenda searches40963
1207+
Node: org-sidebar41835
1208+
Node: License42114
11931209

11941210
End Tag Table
11951211

0 commit comments

Comments
 (0)