diff --git a/README.org b/README.org index 3e5d9620..2e815fd4 100644 --- a/README.org +++ b/README.org @@ -557,6 +557,12 @@ Simple links may also be written manually in either sexp or non-sexp form, like: Nothing new yet. +** 0.8.3 + +*Fixes* + ++ Command ~org-ql-find~ incorrectly moved point. (See [[https://github.com/alphapapa/org-ql/issues/380#issuecomment-1881913025][#380]]. Thanks to [[https://github.com/oantolin][Omar Antolín Camarena]] for reporting.) + ** 0.8.2 *Fixes* diff --git a/org-ql-find.el b/org-ql-find.el index 3e517c6a..591e9589 100644 --- a/org-ql-find.el +++ b/org-ql-find.el @@ -78,7 +78,20 @@ single predicate)." (set-buffer (marker-buffer marker)) (pop-to-buffer (current-buffer) org-ql-find-display-buffer-action) (without-restriction - (run-hook-with-args 'org-ql-find-goto-hook)))) + (goto-char marker) + (run-hook-with-args 'org-ql-find-goto-hook)) + (when (equal (current-buffer) (marker-buffer marker)) + ;; Ensure point is still within visible portion of buffer. (If + ;; `org-tree-to-indirect-buffer' is used in `org-ql-find-goto-hook', + ;; the buffer will have been changed and it won't matter; otherwise, + ;; the buffer could have been narrowed to a region excluding the + ;; selected entry.) + (let ((end-of-subtree (org-with-point-at marker + (org-end-of-subtree 'invisible-ok)))) + (unless (and (<= (point-min) marker) + (>= (point-max) end-of-subtree)) + (widen) + (goto-char marker)))))) ;;;###autoload (defun org-ql-refile (marker) diff --git a/org-ql.info b/org-ql.info index 5b49b6c3..302c2c8b 100644 --- a/org-ql.info +++ b/org-ql.info @@ -73,6 +73,7 @@ Functions / Macros Changelog * 0.9-pre: 09-pre. +* 0.8.3: 083. * 0.8.2: 082. * 0.8.1: 081. * 0.8: 08. @@ -1032,6 +1033,7 @@ releases. * Menu: * 0.9-pre: 09-pre. +* 0.8.3: 083. * 0.8.2: 082. * 0.8.1: 081. * 0.8: 08. @@ -1067,7 +1069,7 @@ releases. * 0.1: 01.  -File: README.info, Node: 09-pre, Next: 082, Up: Changelog +File: README.info, Node: 09-pre, Next: 083, Up: Changelog 5.1 0.9-pre =========== @@ -1075,9 +1077,22 @@ File: README.info, Node: 09-pre, Next: 082, Up: Changelog Nothing new yet.  -File: README.info, Node: 082, Next: 081, Prev: 09-pre, Up: Changelog +File: README.info, Node: 083, Next: 082, Prev: 09-pre, Up: Changelog -5.2 0.8.2 +5.2 0.8.3 +========= + +*Fixes* + + • Command ‘org-ql-find’ incorrectly moved point. (See #380 + (https://github.com/alphapapa/org-ql/issues/380#issuecomment-1881913025). + Thanks to Omar Antolín Camarena (https://github.com/oantolin) for + reporting.) + + +File: README.info, Node: 082, Next: 081, Prev: 083, Up: Changelog + +5.3 0.8.2 ========= *Fixes* @@ -1091,7 +1106,7 @@ File: README.info, Node: 082, Next: 081, Prev: 09-pre, Up: Changelog  File: README.info, Node: 081, Next: 08, Prev: 082, Up: Changelog -5.3 0.8.1 +5.4 0.8.1 ========= *Fixes* @@ -1106,7 +1121,7 @@ File: README.info, Node: 081, Next: 08, Prev: 082, Up: Changelog  File: README.info, Node: 08, Next: 074, Prev: 081, Up: Changelog -5.4 0.8 +5.5 0.8 ======= *Additions* @@ -1162,7 +1177,7 @@ File: README.info, Node: 08, Next: 074, Prev: 081, Up: Changelog  File: README.info, Node: 074, Next: 073, Prev: 08, Up: Changelog -5.5 0.7.4 +5.6 0.7.4 ========= *Fixes* @@ -1172,7 +1187,7 @@ File: README.info, Node: 074, Next: 073, Prev: 08, Up: Changelog  File: README.info, Node: 073, Next: 072, Prev: 074, Up: Changelog -5.6 0.7.3 +5.7 0.7.3 ========= *Fixes* @@ -1190,7 +1205,7 @@ File: README.info, Node: 073, Next: 072, Prev: 074, Up: Changelog  File: README.info, Node: 072, Next: 071, Prev: 073, Up: Changelog -5.7 0.7.2 +5.8 0.7.2 ========= *Fixes* @@ -1211,7 +1226,7 @@ File: README.info, Node: 072, Next: 071, Prev: 073, Up: Changelog  File: README.info, Node: 071, Next: 07, Prev: 072, Up: Changelog -5.8 0.7.1 +5.9 0.7.1 ========= *Fixes* @@ -1230,8 +1245,8 @@ File: README.info, Node: 071, Next: 07, Prev: 072, Up: Changelog  File: README.info, Node: 07, Next: 063, Prev: 071, Up: Changelog -5.9 0.7 -======= +5.10 0.7 +======== *Added* • Command ‘org-ql-find’, which jumps to entries selected using @@ -1289,7 +1304,7 @@ File: README.info, Node: 07, Next: 063, Prev: 071, Up: Changelog  File: README.info, Node: 063, Next: 062, Prev: 07, Up: Changelog -5.10 0.6.3 +5.11 0.6.3 ========== *Fixed* @@ -1305,7 +1320,7 @@ File: README.info, Node: 063, Next: 062, Prev: 07, Up: Changelog  File: README.info, Node: 062, Next: 061, Prev: 063, Up: Changelog -5.11 0.6.2 +5.12 0.6.2 ========== *Fixed* @@ -1316,7 +1331,7 @@ File: README.info, Node: 062, Next: 061, Prev: 063, Up: Changelog  File: README.info, Node: 061, Next: 06, Prev: 062, Up: Changelog -5.12 0.6.1 +5.13 0.6.1 ========== *Fixed* @@ -1334,7 +1349,7 @@ File: README.info, Node: 061, Next: 06, Prev: 062, Up: Changelog  File: README.info, Node: 06, Next: 052, Prev: 061, Up: Changelog -5.13 0.6 +5.14 0.6 ======== *Added* @@ -1401,7 +1416,7 @@ File: README.info, Node: 06, Next: 052, Prev: 061, Up: Changelog  File: README.info, Node: 052, Next: 051, Prev: 06, Up: Changelog -5.14 0.5.2 +5.15 0.5.2 ========== *Fixed* @@ -1412,7 +1427,7 @@ File: README.info, Node: 052, Next: 051, Prev: 06, Up: Changelog  File: README.info, Node: 051, Next: 05, Prev: 052, Up: Changelog -5.15 0.5.1 +5.16 0.5.1 ========== *Fixed* @@ -1425,7 +1440,7 @@ File: README.info, Node: 051, Next: 05, Prev: 052, Up: Changelog  File: README.info, Node: 05, Next: 049, Prev: 051, Up: Changelog -5.16 0.5 +5.17 0.5 ======== *Added* @@ -1466,7 +1481,7 @@ File: README.info, Node: 05, Next: 049, Prev: 051, Up: Changelog  File: README.info, Node: 049, Next: 048, Prev: 05, Up: Changelog -5.17 0.4.9 +5.18 0.4.9 ========== *Fixed* @@ -1477,7 +1492,7 @@ File: README.info, Node: 049, Next: 048, Prev: 05, Up: Changelog  File: README.info, Node: 048, Next: 047, Prev: 049, Up: Changelog -5.18 0.4.8 +5.19 0.4.8 ========== *Fixed* @@ -1489,7 +1504,7 @@ File: README.info, Node: 048, Next: 047, Prev: 049, Up: Changelog  File: README.info, Node: 047, Next: 046, Prev: 048, Up: Changelog -5.19 0.4.7 +5.20 0.4.7 ========== *Fixed* @@ -1502,7 +1517,7 @@ File: README.info, Node: 047, Next: 046, Prev: 048, Up: Changelog  File: README.info, Node: 046, Next: 045, Prev: 047, Up: Changelog -5.20 0.4.6 +5.21 0.4.6 ========== *Fixed* @@ -1515,7 +1530,7 @@ File: README.info, Node: 046, Next: 045, Prev: 047, Up: Changelog  File: README.info, Node: 045, Next: 044, Prev: 046, Up: Changelog -5.21 0.4.5 +5.22 0.4.5 ========== *Fixed* @@ -1527,7 +1542,7 @@ File: README.info, Node: 045, Next: 044, Prev: 046, Up: Changelog  File: README.info, Node: 044, Next: 043, Prev: 045, Up: Changelog -5.22 0.4.4 +5.23 0.4.4 ========== *Fixed* @@ -1539,7 +1554,7 @@ File: README.info, Node: 044, Next: 043, Prev: 045, Up: Changelog  File: README.info, Node: 043, Next: 042, Prev: 044, Up: Changelog -5.23 0.4.3 +5.24 0.4.3 ========== *Fixed* @@ -1549,7 +1564,7 @@ File: README.info, Node: 043, Next: 042, Prev: 044, Up: Changelog  File: README.info, Node: 042, Next: 041, Prev: 043, Up: Changelog -5.24 0.4.2 +5.25 0.4.2 ========== *Fixed* @@ -1558,7 +1573,7 @@ File: README.info, Node: 042, Next: 041, Prev: 043, Up: Changelog  File: README.info, Node: 041, Next: 04, Prev: 042, Up: Changelog -5.25 0.4.1 +5.26 0.4.1 ========== *Fixed* @@ -1568,7 +1583,7 @@ File: README.info, Node: 041, Next: 04, Prev: 042, Up: Changelog  File: README.info, Node: 04, Next: 032, Prev: 041, Up: Changelog -5.26 0.4 +5.27 0.4 ======== _Note:_ The next release, 0.5, may include changes which will require @@ -1649,7 +1664,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.27 0.3.2 +5.28 0.3.2 ========== *Fixed* @@ -1662,7 +1677,7 @@ File: README.info, Node: 032, Next: 031, Prev: 04, Up: Changelog  File: README.info, Node: 031, Next: 03, Prev: 032, Up: Changelog -5.28 0.3.1 +5.29 0.3.1 ========== *Fixed* @@ -1672,7 +1687,7 @@ File: README.info, Node: 031, Next: 03, Prev: 032, Up: Changelog  File: README.info, Node: 03, Next: 023, Prev: 031, Up: Changelog -5.29 0.3 +5.30 0.3 ======== *Added* @@ -1740,7 +1755,7 @@ File: README.info, Node: 03, Next: 023, Prev: 031, Up: Changelog  File: README.info, Node: 023, Next: 022, Prev: 03, Up: Changelog -5.30 0.2.3 +5.31 0.2.3 ========== *Fixed* @@ -1750,7 +1765,7 @@ File: README.info, Node: 023, Next: 022, Prev: 03, Up: Changelog  File: README.info, Node: 022, Next: 021, Prev: 023, Up: Changelog -5.31 0.2.2 +5.32 0.2.2 ========== *Fixed* @@ -1761,7 +1776,7 @@ File: README.info, Node: 022, Next: 021, Prev: 023, Up: Changelog  File: README.info, Node: 021, Next: 02, Prev: 022, Up: Changelog -5.32 0.2.1 +5.33 0.2.1 ========== *Fixed* @@ -1771,7 +1786,7 @@ File: README.info, Node: 021, Next: 02, Prev: 022, Up: Changelog  File: README.info, Node: 02, Next: 01, Prev: 021, Up: Changelog -5.33 0.2 +5.34 0.2 ======== *Added* @@ -1854,7 +1869,7 @@ File: README.info, Node: 02, Next: 01, Prev: 021, Up: Changelog  File: README.info, Node: 01, Prev: 02, Up: Changelog -5.34 0.1 +5.35 0.1 ======== First tagged release. @@ -1912,79 +1927,80 @@ GPLv3  Tag Table: Node: Top225 -Node: Contents1898 -Node: Screenshots2021 -Node: Installation2139 -Node: Quelpa2653 -Node: Helm support3181 -Node: Usage3584 -Node: Commands3982 -Node: org-ql-find4447 -Node: org-ql-open-link5355 -Node: org-ql-refile6210 -Node: org-ql-search6538 -Node: helm-org-ql8469 -Node: org-ql-view8847 -Node: org-ql-view-sidebar9377 -Node: org-ql-view-recent-items9757 -Node: org-ql-sparse-tree10253 -Node: Queries11053 -Node: Non-sexp query syntax12170 -Node: General predicates13929 -Node: Ancestor/descendant predicates20854 -Node: Date/time predicates21982 -Node: Functions / Macros25106 -Node: Agenda-like views25404 -Ref: Function org-ql-block25566 -Node: Listing / acting-on results26827 -Ref: Caching27035 -Ref: Function org-ql-select27948 -Ref: Function org-ql-query30374 -Ref: Macro org-ql (deprecated)32148 -Node: Custom predicates32463 -Ref: Macro org-ql-defpred32687 -Node: Dynamic block36128 -Node: Links38852 -Node: Tips39539 -Node: Changelog39863 -Node: 09-pre40726 -Node: 08240833 -Node: 08141229 -Node: 0841650 -Node: 07444374 -Node: 07344597 -Node: 07245329 -Node: 07146248 -Node: 0747057 -Node: 06349921 -Node: 06250454 -Node: 06150761 -Node: 0651331 -Node: 05254387 -Node: 05154689 -Node: 0555114 -Node: 04956645 -Node: 04856927 -Node: 04757276 -Node: 04657685 -Node: 04558093 -Node: 04458454 -Node: 04358813 -Node: 04259016 -Node: 04159177 -Node: 0459424 -Node: 03263525 -Node: 03163928 -Node: 0364125 -Node: 02367425 -Node: 02267659 -Node: 02167939 -Node: 0268144 -Node: 0172222 -Node: Notes72323 -Node: Comparison with Org Agenda searches72485 -Node: org-sidebar73374 -Node: License73653 +Node: Contents1912 +Node: Screenshots2035 +Node: Installation2153 +Node: Quelpa2667 +Node: Helm support3195 +Node: Usage3598 +Node: Commands3996 +Node: org-ql-find4461 +Node: org-ql-open-link5369 +Node: org-ql-refile6224 +Node: org-ql-search6552 +Node: helm-org-ql8483 +Node: org-ql-view8861 +Node: org-ql-view-sidebar9391 +Node: org-ql-view-recent-items9771 +Node: org-ql-sparse-tree10267 +Node: Queries11067 +Node: Non-sexp query syntax12184 +Node: General predicates13943 +Node: Ancestor/descendant predicates20868 +Node: Date/time predicates21996 +Node: Functions / Macros25120 +Node: Agenda-like views25418 +Ref: Function org-ql-block25580 +Node: Listing / acting-on results26841 +Ref: Caching27049 +Ref: Function org-ql-select27962 +Ref: Function org-ql-query30388 +Ref: Macro org-ql (deprecated)32162 +Node: Custom predicates32477 +Ref: Macro org-ql-defpred32701 +Node: Dynamic block36142 +Node: Links38866 +Node: Tips39553 +Node: Changelog39877 +Node: 09-pre40754 +Node: 08340861 +Node: 08241205 +Node: 08141598 +Node: 0842019 +Node: 07444743 +Node: 07344966 +Node: 07245698 +Node: 07146617 +Node: 0747426 +Node: 06350292 +Node: 06250825 +Node: 06151132 +Node: 0651702 +Node: 05254758 +Node: 05155060 +Node: 0555485 +Node: 04957016 +Node: 04857298 +Node: 04757647 +Node: 04658056 +Node: 04558464 +Node: 04458825 +Node: 04359184 +Node: 04259387 +Node: 04159548 +Node: 0459795 +Node: 03263896 +Node: 03164299 +Node: 0364496 +Node: 02367796 +Node: 02268030 +Node: 02168310 +Node: 0268515 +Node: 0172593 +Node: Notes72694 +Node: Comparison with Org Agenda searches72856 +Node: org-sidebar73745 +Node: License74024  End Tag Table