diff --git a/README.org b/README.org index d454d6b..c2376c6 100644 --- a/README.org +++ b/README.org @@ -544,7 +544,8 @@ Simple links may also be written manually in either sexp or non-sexp form, like: ** 0.7.3-pre -Nothing new yet. +*Fixes* ++ Disable ~case-fold-search~ when collecting headings in outline paths. (Headings that started with a word that is also a to-do keyword but with different capitalization would be matched incorrectly.) ** 0.7.2 diff --git a/org-ql.el b/org-ql.el index 862d20f..b4d8cd9 100644 --- a/org-ql.el +++ b/org-ql.el @@ -624,9 +624,10 @@ Returns cons (INHERITED-TAGS . LOCAL-TAGS)." "Return outline path for heading at point." (save-excursion (let ((heading (save-match-data - (if (looking-at org-complex-heading-regexp) - (or (match-string 4) "") - "")))) + (let (case-fold-search) + (if (looking-at org-complex-heading-regexp) + (or (match-string-no-properties 4) "") + ""))))) (if (org-up-heading-safe) ;; MAYBE: It seems wrong to call the cache function from ;; inside this function, like a violation of separation of diff --git a/org-ql.info b/org-ql.info index 66fb70a..cae7ef3 100644 --- a/org-ql.info +++ b/org-ql.info @@ -1029,7 +1029,11 @@ File: README.info, Node: 073-pre, Next: 072, Up: Changelog 5.1 0.7.3-pre ============= -Nothing new yet. +*Fixes* + • Disable ‘case-fold-search’ when collecting headings in outline + paths. (Headings that started with a word that is also a to-do + keyword but with different capitalization would be matched + incorrectly.)  File: README.info, Node: 072, Next: 071, Prev: 073-pre, Up: Changelog @@ -1792,38 +1796,38 @@ Node: Links37271 Node: Tips37958 Node: Changelog38282 Node: 073-pre39081 -Node: 07239193 -Node: 07140116 -Node: 0740925 -Node: 06343849 -Node: 06244380 -Node: 06144685 -Node: 0645253 -Node: 05248307 -Node: 05148607 -Node: 0549032 -Node: 04950563 -Node: 04850845 -Node: 04751194 -Node: 04651603 -Node: 04552011 -Node: 04452372 -Node: 04352731 -Node: 04252934 -Node: 04153095 -Node: 0453342 -Node: 03257443 -Node: 03157846 -Node: 0358043 -Node: 02361343 -Node: 02261577 -Node: 02161857 -Node: 0262062 -Node: 0166140 -Node: Notes66241 -Node: Comparison with Org Agenda searches66403 -Node: org-sidebar67292 -Node: License67571 +Node: 07239410 +Node: 07140333 +Node: 0741142 +Node: 06344066 +Node: 06244597 +Node: 06144902 +Node: 0645470 +Node: 05248524 +Node: 05148824 +Node: 0549249 +Node: 04950780 +Node: 04851062 +Node: 04751411 +Node: 04651820 +Node: 04552228 +Node: 04452589 +Node: 04352948 +Node: 04253151 +Node: 04153312 +Node: 0453559 +Node: 03257660 +Node: 03158063 +Node: 0358260 +Node: 02361560 +Node: 02261794 +Node: 02162074 +Node: 0262279 +Node: 0166357 +Node: Notes66458 +Node: Comparison with Org Agenda searches66620 +Node: org-sidebar67509 +Node: License67788  End Tag Table