From 7ff6cc2ef71ac703c22834eae06550be68daa0f3 Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Tue, 9 Jan 2024 02:23:55 -0600 Subject: [PATCH] Fix: (org-ql-find) Don't use org-with-point-at See . Reported-by: Bram Schoenmakers --- README.org | 4 ++- org-ql-find.el | 2 +- org-ql.info | 80 +++++++++++++++++++++++++++----------------------- 3 files changed, 47 insertions(+), 39 deletions(-) diff --git a/README.org b/README.org index 5a7190f..17249ec 100644 --- a/README.org +++ b/README.org @@ -555,7 +555,9 @@ Simple links may also be written manually in either sexp or non-sexp form, like: ** 0.8.2-pre -Nothing new yet. +*Fixes* + ++ Command ~org-ql-find~ incorrectly restored the buffer after jumping when not using indirect buffers. (See [[https://github.com/alphapapa/org-ql/issues/380#issuecomment-1881913025][#380]]. Thanks to [[https://github.com/bram85][Bram Schoenmakers]] for reporting.) ** 0.8.1 diff --git a/org-ql-find.el b/org-ql-find.el index fed9ade..3e517c6 100644 --- a/org-ql-find.el +++ b/org-ql-find.el @@ -77,7 +77,7 @@ single predicate)." :prompt prompt))) (set-buffer (marker-buffer marker)) (pop-to-buffer (current-buffer) org-ql-find-display-buffer-action) - (org-with-point-at marker + (without-restriction (run-hook-with-args 'org-ql-find-goto-hook)))) ;;;###autoload diff --git a/org-ql.info b/org-ql.info index 57c34a9..78a9c54 100644 --- a/org-ql.info +++ b/org-ql.info @@ -1070,7 +1070,13 @@ File: README.info, Node: 082-pre, Next: 081, Up: Changelog 5.1 0.8.2-pre ============= -Nothing new yet. +*Fixes* + + • Command ‘org-ql-find’ incorrectly restored the buffer after jumping + when not using indirect buffers. (See #380 + (https://github.com/alphapapa/org-ql/issues/380#issuecomment-1881913025). + Thanks to Bram Schoenmakers (https://github.com/bram85) for + reporting.)  File: README.info, Node: 081, Next: 08, Prev: 082-pre, Up: Changelog @@ -1932,42 +1938,42 @@ Node: Links38841 Node: Tips39528 Node: Changelog39852 Node: 082-pre40704 -Node: 08140816 -Node: 0841241 -Node: 07443965 -Node: 07344188 -Node: 07244920 -Node: 07145839 -Node: 0746648 -Node: 06349512 -Node: 06250043 -Node: 06150350 -Node: 0650920 -Node: 05253976 -Node: 05154278 -Node: 0554703 -Node: 04956234 -Node: 04856516 -Node: 04756865 -Node: 04657274 -Node: 04557682 -Node: 04458043 -Node: 04358402 -Node: 04258605 -Node: 04158766 -Node: 0459013 -Node: 03263114 -Node: 03163517 -Node: 0363714 -Node: 02367014 -Node: 02267248 -Node: 02167528 -Node: 0267733 -Node: 0171811 -Node: Notes71912 -Node: Comparison with Org Agenda searches72074 -Node: org-sidebar72963 -Node: License73242 +Node: 08141097 +Node: 0841522 +Node: 07444246 +Node: 07344469 +Node: 07245201 +Node: 07146120 +Node: 0746929 +Node: 06349793 +Node: 06250324 +Node: 06150631 +Node: 0651201 +Node: 05254257 +Node: 05154559 +Node: 0554984 +Node: 04956515 +Node: 04856797 +Node: 04757146 +Node: 04657555 +Node: 04557963 +Node: 04458324 +Node: 04358683 +Node: 04258886 +Node: 04159047 +Node: 0459294 +Node: 03263395 +Node: 03163798 +Node: 0363995 +Node: 02367295 +Node: 02267529 +Node: 02167809 +Node: 0268014 +Node: 0172092 +Node: Notes72193 +Node: Comparison with Org Agenda searches72355 +Node: org-sidebar73244 +Node: License73523  End Tag Table