Skip to content

Commit c847afe

Browse files
committed
Merge: 0.4.5
2 parents f4d7399 + 5a031bf commit c847afe

File tree

4 files changed

+88
-61
lines changed

4 files changed

+88
-61
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.5
416+
417+
*Fixed*
418+
+ Non-case-folding predicates like ~(todo)~ unnecessarily disabled case-folding for other predicates. ([[https://github.com/alphapapa/org-ql/issues/114][Issue #114]]. Thanks to [[https://github.com/bitclick][@bitclick]] for reporting.)
419+
415420
** 0.4.4
416421

417422
*Fixed*

org-ql.el

+6-6
Original file line numberDiff line numberDiff line change
@@ -377,12 +377,12 @@ If NARROW is non-nil, buffer will not be widened."
377377
(message "org-ql: No headings in buffer: %s" (current-buffer)))
378378
nil)
379379
;; Find matching entries.
380-
(cond (preamble (let ((case-fold-search preamble-case-fold))
381-
(cl-loop while (re-search-forward preamble nil t)
382-
do (outline-back-to-heading 'invisible-ok)
383-
when (funcall predicate)
384-
collect (funcall action)
385-
do (outline-next-heading))))
380+
(cond (preamble (cl-loop while (let ((case-fold-search preamble-case-fold))
381+
(re-search-forward preamble nil t))
382+
do (outline-back-to-heading 'invisible-ok)
383+
when (funcall predicate)
384+
collect (funcall action)
385+
do (outline-next-heading)))
386386
(t (cl-loop when (funcall predicate)
387387
collect (funcall action)
388388
while (outline-next-heading))))))))

org-ql.info

+70-55
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.5: 045.
6768
* 0.4.4: 044.
6869
* 0.4.3: 043.
6970
* 0.4.2: 042.
@@ -721,6 +722,7 @@ releases.
721722
* Menu:
722723

723724
* 0.5-pre: 05-pre.
725+
* 0.4.5: 045.
724726
* 0.4.4: 044.
725727
* 0.4.3: 043.
726728
* 0.4.2: 042.
@@ -736,7 +738,7 @@ releases.
736738
* 0.1: 01.
737739

738740

739-
File: README.info, Node: 05-pre, Next: 044, Up: Changelog
741+
File: README.info, Node: 05-pre, Next: 045, Up: Changelog
740742

741743
5.1 0.5-pre
742744
===========
@@ -752,9 +754,21 @@ File: README.info, Node: 05-pre, Next: 044, Up: Changelog
752754
• Binding to refresh search/view buffers changed to r.
753755

754756

755-
File: README.info, Node: 044, Next: 043, Prev: 05-pre, Up: Changelog
757+
File: README.info, Node: 045, Next: 044, Prev: 05-pre, Up: Changelog
756758

757-
5.2 0.4.4
759+
5.2 0.4.5
760+
=========
761+
762+
*Fixed*
763+
• Non-case-folding predicates like ‘(todo)’ unnecessarily disabled
764+
case-folding for other predicates. (Issue #114
765+
(https://github.com/alphapapa/org-ql/issues/114). Thanks to
766+
@bitclick (https://github.com/bitclick) for reporting.)
767+
768+

769+
File: README.info, Node: 044, Next: 043, Prev: 045, Up: Changelog
770+
771+
5.3 0.4.4
758772
=========
759773

760774
*Fixed*
@@ -766,7 +780,7 @@ File: README.info, Node: 044, Next: 043, Prev: 05-pre, Up: Changelog
766780

767781
File: README.info, Node: 043, Next: 042, Prev: 044, Up: Changelog
768782

769-
5.3 0.4.3
783+
5.4 0.4.3
770784
=========
771785

772786
*Fixed*
@@ -776,7 +790,7 @@ File: README.info, Node: 043, Next: 042, Prev: 044, Up: Changelog
776790

777791
File: README.info, Node: 042, Next: 041, Prev: 043, Up: Changelog
778792

779-
5.4 0.4.2
793+
5.5 0.4.2
780794
=========
781795

782796
*Fixed*
@@ -785,7 +799,7 @@ File: README.info, Node: 042, Next: 041, Prev: 043, Up: Changelog
785799

786800
File: README.info, Node: 041, Next: 04, Prev: 042, Up: Changelog
787801

788-
5.5 0.4.1
802+
5.6 0.4.1
789803
=========
790804

791805
*Fixed*
@@ -795,7 +809,7 @@ File: README.info, Node: 041, Next: 04, Prev: 042, Up: Changelog
795809

796810
File: README.info, Node: 04, Next: 032, Prev: 041, Up: Changelog
797811

798-
5.6 0.4
812+
5.7 0.4
799813
=======
800814

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

877891
File: README.info, Node: 032, Next: 031, Prev: 04, Up: Changelog
878892

879-
5.7 0.3.2
893+
5.8 0.3.2
880894
=========
881895

882896
*Fixed*
@@ -889,7 +903,7 @@ File: README.info, Node: 032, Next: 031, Prev: 04, Up: Changelog
889903

890904
File: README.info, Node: 031, Next: 03, Prev: 032, Up: Changelog
891905

892-
5.8 0.3.1
906+
5.9 0.3.1
893907
=========
894908

895909
*Fixed*
@@ -899,8 +913,8 @@ File: README.info, Node: 031, Next: 03, Prev: 032, Up: Changelog
899913

900914
File: README.info, Node: 03, Next: 023, Prev: 031, Up: Changelog
901915

902-
5.9 0.3
903-
=======
916+
5.10 0.3
917+
========
904918

905919
*Added*
906920
• Alternative, non-sexp query syntax for commands org-ql-search and
@@ -964,7 +978,7 @@ File: README.info, Node: 03, Next: 023, Prev: 031, Up: Changelog
964978

965979
File: README.info, Node: 023, Next: 022, Prev: 03, Up: Changelog
966980

967-
5.10 0.2.3
981+
5.11 0.2.3
968982
==========
969983

970984
*Fixed*
@@ -974,7 +988,7 @@ File: README.info, Node: 023, Next: 022, Prev: 03, Up: Changelog
974988

975989
File: README.info, Node: 022, Next: 021, Prev: 023, Up: Changelog
976990

977-
5.11 0.2.2
991+
5.12 0.2.2
978992
==========
979993

980994
*Fixed*
@@ -985,7 +999,7 @@ File: README.info, Node: 022, Next: 021, Prev: 023, Up: Changelog
985999

9861000
File: README.info, Node: 021, Next: 02, Prev: 022, Up: Changelog
9871001

988-
5.12 0.2.1
1002+
5.13 0.2.1
9891003
==========
9901004

9911005
*Fixed*
@@ -995,7 +1009,7 @@ File: README.info, Node: 021, Next: 02, Prev: 022, Up: Changelog
9951009

9961010
File: README.info, Node: 02, Next: 01, Prev: 021, Up: Changelog
9971011

998-
5.13 0.2
1012+
5.14 0.2
9991013
========
10001014

10011015
*Added*
@@ -1078,7 +1092,7 @@ File: README.info, Node: 02, Next: 01, Prev: 021, Up: Changelog
10781092

10791093
File: README.info, Node: 01, Prev: 02, Up: Changelog
10801094

1081-
5.14 0.1
1095+
5.15 0.1
10821096
========
10831097

10841098
First tagged release.
@@ -1136,45 +1150,46 @@ GPLv3
11361150

11371151
Tag Table:
11381152
Node: Top225
1139-
Node: Contents1482
1140-
Node: Screenshots1605
1141-
Node: Installation1723
1142-
Node: Quelpa2361
1143-
Node: Usage2804
1144-
Node: Commands3153
1145-
Node: org-ql-search3626
1146-
Node: helm-org-ql5340
1147-
Node: org-ql-view5752
1148-
Node: org-ql-view-sidebar6252
1149-
Node: org-ql-view-recent-items6608
1150-
Node: org-ql-sparse-tree7092
1151-
Node: Queries7892
1152-
Node: Non-sexp query syntax8800
1153-
Node: General predicates10507
1154-
Node: Ancestor/descendant predicates15722
1155-
Node: Date/time predicates16850
1156-
Node: Functions / Macros19505
1157-
Node: Agenda-like views19738
1158-
Node: Listing / acting-on results21143
1159-
Node: Changelog25745
1160-
Node: 05-pre26354
1161-
Node: 04426718
1162-
Node: 04327078
1163-
Node: 04227273
1164-
Node: 04127432
1165-
Node: 0427671
1166-
Node: 03231602
1167-
Node: 03131979
1168-
Node: 0332174
1169-
Node: 02335147
1170-
Node: 02235375
1171-
Node: 02135643
1172-
Node: 0235842
1173-
Node: 0139877
1174-
Node: Notes39978
1175-
Node: Comparison with Org Agenda searches40140
1176-
Node: org-sidebar41012
1177-
Node: License41291
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
11781193

11791194
End Tag Table
11801195

tests/test-org-ql.el

+7
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,13 @@ RESULTS should be a list of strings as returned by
741741
(org-ql-it "with two plain strings in an OR"
742742
(org-ql-expect ((or "Take over" "universe")
743743
:sort todo)
744+
'("Take over the universe" "Take over the world" "Take over Mars" "Take over the moon" "Get haircut")))
745+
746+
(org-ql-it "case-folding predicate with non-case-folding preamble"
747+
;; e.g. the (todo) predicate disables case-folding in its preamble, but that
748+
;; should not prevent case-folding in this and other predicates (issue #114).
749+
(org-ql-expect ((and (todo "TODO") (regexp "take over"))
750+
:sort todo)
744751
'("Take over the universe" "Take over the world" "Take over Mars" "Take over the moon" "Get haircut"))))
745752

746753
(describe "(scheduled)"

0 commit comments

Comments
 (0)