diff --git a/README.org b/README.org index d7d3587..cf3cbb7 100644 --- a/README.org +++ b/README.org @@ -559,6 +559,13 @@ Simple links may also be written manually in either sexp or non-sexp form, like: + Org v9.7's ~org-element~ API changes required some adjustments. ([[https://github.com/alphapapa/org-ql/issues/364][#364]]. Thanks to several users for reporting, and to [[https://github.com/yantar92][Ihor Radchenko]] for his feedback.) +** 0.7.3 + +*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.) ++ Saving of ~org-ql-view~ views. ([[https://github.com/alphapapa/org-ql/issues/378][#378]]. Thanks to [[https://github.com/Pentaquark1][Pentaquark1]] for reporting.) ++ Command ~org-ql-find~ didn't move point to the selected entry. ([[https://github.com/alphapapa/org-ql/issues/380][#380]]. Thanks to [[https://github.com/oantolin][Omar Antolín Camarena]] for reporting.) + ** 0.7.2 *Fixes* diff --git a/org-ql-find.el b/org-ql-find.el index c1848ea..1b85b77 100644 --- a/org-ql-find.el +++ b/org-ql-find.el @@ -41,6 +41,7 @@ (defcustom org-ql-find-goto-hook '(org-show-entry org-reveal) "Functions called when selecting an entry." + ;; TODO: Add common choices, including `org-tree-to-indirect-buffer'. :type 'hook) (defcustom org-ql-find-display-buffer-action '(display-buffer-same-window) @@ -86,10 +87,11 @@ single predicate)." :query-prefix query-prefix :query-filter query-filter :prompt prompt))) - (org-with-point-at marker - (display-buffer (current-buffer) org-ql-find-display-buffer-action) - (select-window (get-buffer-window (current-buffer))) - (run-hook-with-args 'org-ql-find-goto-hook)))) + (set-buffer (marker-buffer marker)) + (goto-char marker) + (display-buffer (current-buffer) org-ql-find-display-buffer-action) + (select-window (get-buffer-window (current-buffer))) + (run-hook-with-args 'org-ql-find-goto-hook))) ;;;###autoload (defun org-ql-refile (marker) diff --git a/org-ql-view.el b/org-ql-view.el index c81bcd7..034e762 100644 --- a/org-ql-view.el +++ b/org-ql-view.el @@ -352,7 +352,8 @@ update search arguments." (yes-or-no-p (format "Overwrite view \"%s\"?" name))) (setf (map-elt org-ql-views name nil #'equal) plist) (customize-set-variable 'org-ql-views org-ql-views) - (customize-mark-to-save 'org-ql-views)))) + (customize-mark-to-save 'org-ql-views) + (custom-save-all)))) (defun org-ql-view-delete () "Delete current view (with confirmation)." @@ -362,7 +363,8 @@ update search arguments." (--remove (equal (car it) org-ql-view-title) org-ql-views)) (customize-set-variable 'org-ql-views org-ql-views) - (customize-mark-to-save 'org-ql-views))) + (customize-mark-to-save 'org-ql-views) + (custom-save-all))) (defun org-ql-view-customize () "Customize view at point in `org-ql-view-sidebar' buffer." diff --git a/org-ql.el b/org-ql.el index cf669c4..00f0e8c 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 fae9944..cc86437 100644 --- a/org-ql.info +++ b/org-ql.info @@ -72,6 +72,7 @@ Functions / Macros Changelog * 0.8-pre: 08-pre. +* 0.7.3: 073. * 0.7.2: 072. * 0.7.1: 071. * 0.7: 07. @@ -1005,6 +1006,7 @@ releases. * Menu: * 0.8-pre: 08-pre. +* 0.7.3: 073. * 0.7.2: 072. * 0.7.1: 071. * 0.7: 07. @@ -1035,7 +1037,7 @@ releases. * 0.1: 01.  -File: README.info, Node: 08-pre, Next: 072, Up: Changelog +File: README.info, Node: 08-pre, Next: 073, Up: Changelog 5.1 0.8-pre =========== @@ -1066,9 +1068,27 @@ File: README.info, Node: 08-pre, Next: 072, Up: Changelog (https://github.com/yantar92) for his feedback.)  -File: README.info, Node: 072, Next: 071, Prev: 08-pre, Up: Changelog +File: README.info, Node: 073, Next: 072, Prev: 08-pre, Up: Changelog -5.2 0.7.2 +5.2 0.7.3 +========= + +*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.) + • Saving of ‘org-ql-view’ views. (#378 + (https://github.com/alphapapa/org-ql/issues/378). Thanks to + Pentaquark1 (https://github.com/Pentaquark1) for reporting.) + • Command ‘org-ql-find’ didn’t move point to the selected entry. + (#380 (https://github.com/alphapapa/org-ql/issues/380). Thanks to + Omar Antolín Camarena (https://github.com/oantolin) for reporting.) + + +File: README.info, Node: 072, Next: 071, Prev: 073, Up: Changelog + +5.3 0.7.2 ========= *Fixes* @@ -1089,7 +1109,7 @@ File: README.info, Node: 072, Next: 071, Prev: 08-pre, Up: Changelog  File: README.info, Node: 071, Next: 07, Prev: 072, Up: Changelog -5.3 0.7.1 +5.4 0.7.1 ========= *Fixes* @@ -1108,7 +1128,7 @@ File: README.info, Node: 071, Next: 07, Prev: 072, Up: Changelog  File: README.info, Node: 07, Next: 063, Prev: 071, Up: Changelog -5.4 0.7 +5.5 0.7 ======= *Added* @@ -1168,7 +1188,7 @@ File: README.info, Node: 07, Next: 063, Prev: 071, Up: Changelog  File: README.info, Node: 063, Next: 062, Prev: 07, Up: Changelog -5.5 0.6.3 +5.6 0.6.3 ========= *Fixed* @@ -1184,7 +1204,7 @@ File: README.info, Node: 063, Next: 062, Prev: 07, Up: Changelog  File: README.info, Node: 062, Next: 061, Prev: 063, Up: Changelog -5.6 0.6.2 +5.7 0.6.2 ========= *Fixed* @@ -1195,7 +1215,7 @@ File: README.info, Node: 062, Next: 061, Prev: 063, Up: Changelog  File: README.info, Node: 061, Next: 06, Prev: 062, Up: Changelog -5.7 0.6.1 +5.8 0.6.1 ========= *Fixed* @@ -1213,7 +1233,7 @@ File: README.info, Node: 061, Next: 06, Prev: 062, Up: Changelog  File: README.info, Node: 06, Next: 052, Prev: 061, Up: Changelog -5.8 0.6 +5.9 0.6 ======= *Added* @@ -1280,8 +1300,8 @@ File: README.info, Node: 06, Next: 052, Prev: 061, Up: Changelog  File: README.info, Node: 052, Next: 051, Prev: 06, Up: Changelog -5.9 0.5.2 -========= +5.10 0.5.2 +========== *Fixed* • Predicate ‘link’’s ‘:target’ and ‘:regexp-p’ arguments. (#220 @@ -1291,7 +1311,7 @@ File: README.info, Node: 052, Next: 051, Prev: 06, Up: Changelog  File: README.info, Node: 051, Next: 05, Prev: 052, Up: Changelog -5.10 0.5.1 +5.11 0.5.1 ========== *Fixed* @@ -1304,7 +1324,7 @@ File: README.info, Node: 051, Next: 05, Prev: 052, Up: Changelog  File: README.info, Node: 05, Next: 049, Prev: 051, Up: Changelog -5.11 0.5 +5.12 0.5 ======== *Added* @@ -1345,7 +1365,7 @@ File: README.info, Node: 05, Next: 049, Prev: 051, Up: Changelog  File: README.info, Node: 049, Next: 048, Prev: 05, Up: Changelog -5.12 0.4.9 +5.13 0.4.9 ========== *Fixed* @@ -1356,7 +1376,7 @@ File: README.info, Node: 049, Next: 048, Prev: 05, Up: Changelog  File: README.info, Node: 048, Next: 047, Prev: 049, Up: Changelog -5.13 0.4.8 +5.14 0.4.8 ========== *Fixed* @@ -1368,7 +1388,7 @@ File: README.info, Node: 048, Next: 047, Prev: 049, Up: Changelog  File: README.info, Node: 047, Next: 046, Prev: 048, Up: Changelog -5.14 0.4.7 +5.15 0.4.7 ========== *Fixed* @@ -1381,7 +1401,7 @@ File: README.info, Node: 047, Next: 046, Prev: 048, Up: Changelog  File: README.info, Node: 046, Next: 045, Prev: 047, Up: Changelog -5.15 0.4.6 +5.16 0.4.6 ========== *Fixed* @@ -1394,7 +1414,7 @@ File: README.info, Node: 046, Next: 045, Prev: 047, Up: Changelog  File: README.info, Node: 045, Next: 044, Prev: 046, Up: Changelog -5.16 0.4.5 +5.17 0.4.5 ========== *Fixed* @@ -1406,7 +1426,7 @@ File: README.info, Node: 045, Next: 044, Prev: 046, Up: Changelog  File: README.info, Node: 044, Next: 043, Prev: 045, Up: Changelog -5.17 0.4.4 +5.18 0.4.4 ========== *Fixed* @@ -1418,7 +1438,7 @@ File: README.info, Node: 044, Next: 043, Prev: 045, Up: Changelog  File: README.info, Node: 043, Next: 042, Prev: 044, Up: Changelog -5.18 0.4.3 +5.19 0.4.3 ========== *Fixed* @@ -1428,7 +1448,7 @@ File: README.info, Node: 043, Next: 042, Prev: 044, Up: Changelog  File: README.info, Node: 042, Next: 041, Prev: 043, Up: Changelog -5.19 0.4.2 +5.20 0.4.2 ========== *Fixed* @@ -1437,7 +1457,7 @@ File: README.info, Node: 042, Next: 041, Prev: 043, Up: Changelog  File: README.info, Node: 041, Next: 04, Prev: 042, Up: Changelog -5.20 0.4.1 +5.21 0.4.1 ========== *Fixed* @@ -1447,7 +1467,7 @@ File: README.info, Node: 041, Next: 04, Prev: 042, Up: Changelog  File: README.info, Node: 04, Next: 032, Prev: 041, Up: Changelog -5.21 0.4 +5.22 0.4 ======== _Note:_ The next release, 0.5, may include changes which will require @@ -1528,7 +1548,7 @@ automatically, as they will be pushed to the ‘master’ branch when ready.  File: README.info, Node: 032, Next: 031, Prev: 04, Up: Changelog -5.22 0.3.2 +5.23 0.3.2 ========== *Fixed* @@ -1541,7 +1561,7 @@ File: README.info, Node: 032, Next: 031, Prev: 04, Up: Changelog  File: README.info, Node: 031, Next: 03, Prev: 032, Up: Changelog -5.23 0.3.1 +5.24 0.3.1 ========== *Fixed* @@ -1551,7 +1571,7 @@ File: README.info, Node: 031, Next: 03, Prev: 032, Up: Changelog  File: README.info, Node: 03, Next: 023, Prev: 031, Up: Changelog -5.24 0.3 +5.25 0.3 ======== *Added* @@ -1619,7 +1639,7 @@ File: README.info, Node: 03, Next: 023, Prev: 031, Up: Changelog  File: README.info, Node: 023, Next: 022, Prev: 03, Up: Changelog -5.25 0.2.3 +5.26 0.2.3 ========== *Fixed* @@ -1629,7 +1649,7 @@ File: README.info, Node: 023, Next: 022, Prev: 03, Up: Changelog  File: README.info, Node: 022, Next: 021, Prev: 023, Up: Changelog -5.26 0.2.2 +5.27 0.2.2 ========== *Fixed* @@ -1640,7 +1660,7 @@ File: README.info, Node: 022, Next: 021, Prev: 023, Up: Changelog  File: README.info, Node: 021, Next: 02, Prev: 022, Up: Changelog -5.27 0.2.1 +5.28 0.2.1 ========== *Fixed* @@ -1650,7 +1670,7 @@ File: README.info, Node: 021, Next: 02, Prev: 022, Up: Changelog  File: README.info, Node: 02, Next: 01, Prev: 021, Up: Changelog -5.28 0.2 +5.29 0.2 ======== *Added* @@ -1733,7 +1753,7 @@ File: README.info, Node: 02, Next: 01, Prev: 021, Up: Changelog  File: README.info, Node: 01, Prev: 02, Up: Changelog -5.29 0.1 +5.30 0.1 ======== First tagged release. @@ -1791,73 +1811,74 @@ GPLv3  Tag Table: Node: Top225 -Node: Contents1810 -Node: Screenshots1933 -Node: Installation2051 -Node: Quelpa2565 -Node: Helm support3093 -Node: Usage3496 -Node: Commands3894 -Node: org-ql-find4338 -Node: org-ql-refile5153 -Node: org-ql-search5476 -Node: helm-org-ql7407 -Node: org-ql-view7785 -Node: org-ql-view-sidebar8315 -Node: org-ql-view-recent-items8695 -Node: org-ql-sparse-tree9191 -Node: Queries9991 -Node: Non-sexp query syntax11108 -Node: General predicates12867 -Node: Ancestor/descendant predicates19854 -Node: Date/time predicates20982 -Node: Functions / Macros24106 -Node: Agenda-like views24404 -Ref: Function org-ql-block24566 -Node: Listing / acting-on results25827 -Ref: Caching26035 -Ref: Function org-ql-select26948 -Ref: Function org-ql-query29374 -Ref: Macro org-ql (deprecated)31148 -Node: Custom predicates31463 -Ref: Macro org-ql-defpred31687 -Node: Dynamic block35128 -Node: Links37852 -Node: Tips38539 -Node: Changelog38863 -Node: 08-pre39659 -Node: 07240992 -Node: 07141914 -Node: 0742723 -Node: 06345647 -Node: 06246178 -Node: 06146483 -Node: 0647051 -Node: 05250105 -Node: 05150405 -Node: 0550830 -Node: 04952361 -Node: 04852643 -Node: 04752992 -Node: 04653401 -Node: 04553809 -Node: 04454170 -Node: 04354529 -Node: 04254732 -Node: 04154893 -Node: 0455140 -Node: 03259241 -Node: 03159644 -Node: 0359841 -Node: 02363141 -Node: 02263375 -Node: 02163655 -Node: 0263860 -Node: 0167938 -Node: Notes68039 -Node: Comparison with Org Agenda searches68201 -Node: org-sidebar69090 -Node: License69369 +Node: Contents1824 +Node: Screenshots1947 +Node: Installation2065 +Node: Quelpa2579 +Node: Helm support3107 +Node: Usage3510 +Node: Commands3908 +Node: org-ql-find4352 +Node: org-ql-refile5167 +Node: org-ql-search5490 +Node: helm-org-ql7421 +Node: org-ql-view7799 +Node: org-ql-view-sidebar8329 +Node: org-ql-view-recent-items8709 +Node: org-ql-sparse-tree9205 +Node: Queries10005 +Node: Non-sexp query syntax11122 +Node: General predicates12881 +Node: Ancestor/descendant predicates19868 +Node: Date/time predicates20996 +Node: Functions / Macros24120 +Node: Agenda-like views24418 +Ref: Function org-ql-block24580 +Node: Listing / acting-on results25841 +Ref: Caching26049 +Ref: Function org-ql-select26962 +Ref: Function org-ql-query29388 +Ref: Macro org-ql (deprecated)31162 +Node: Custom predicates31477 +Ref: Macro org-ql-defpred31701 +Node: Dynamic block35142 +Node: Links37866 +Node: Tips38553 +Node: Changelog38877 +Node: 08-pre39687 +Node: 07341020 +Node: 07241755 +Node: 07142674 +Node: 0743483 +Node: 06346407 +Node: 06246938 +Node: 06147243 +Node: 0647811 +Node: 05250865 +Node: 05151167 +Node: 0551592 +Node: 04953123 +Node: 04853405 +Node: 04753754 +Node: 04654163 +Node: 04554571 +Node: 04454932 +Node: 04355291 +Node: 04255494 +Node: 04155655 +Node: 0455902 +Node: 03260003 +Node: 03160406 +Node: 0360603 +Node: 02363903 +Node: 02264137 +Node: 02164417 +Node: 0264622 +Node: 0168700 +Node: Notes68801 +Node: Comparison with Org Agenda searches68963 +Node: org-sidebar69852 +Node: License70131  End Tag Table