Fix: (org-ql-find) Don't use org-with-point-at

See <https://github.com/alphapapa/org-ql/issues/380#issuecomment-1881913025>.

Reported-by: Bram Schoenmakers <me@bramschoenmakers.nl>
This commit is contained in:
Adam Porter 2024-01-09 02:23:55 -06:00
parent 8595139f5b
commit 7ff6cc2ef7
3 changed files with 47 additions and 39 deletions

View file

@ -555,7 +555,9 @@ Simple links may also be written manually in either sexp or non-sexp form, like:
** 0.8.2-pre ** 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 ** 0.8.1

View file

@ -77,7 +77,7 @@ single predicate)."
:prompt prompt))) :prompt prompt)))
(set-buffer (marker-buffer marker)) (set-buffer (marker-buffer marker))
(pop-to-buffer (current-buffer) org-ql-find-display-buffer-action) (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)))) (run-hook-with-args 'org-ql-find-goto-hook))))
;;;###autoload ;;;###autoload

View file

@ -1070,7 +1070,13 @@ File: README.info, Node: 082-pre, Next: 081, Up: Changelog
5.1 0.8.2-pre 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 File: README.info, Node: 081, Next: 08, Prev: 082-pre, Up: Changelog
@ -1932,42 +1938,42 @@ Node: Links38841
Node: Tips39528 Node: Tips39528
Node: Changelog39852 Node: Changelog39852
Node: 082-pre40704 Node: 082-pre40704
Node: 08140816 Node: 08141097
Node: 0841241 Node: 0841522
Node: 07443965 Node: 07444246
Node: 07344188 Node: 07344469
Node: 07244920 Node: 07245201
Node: 07145839 Node: 07146120
Node: 0746648 Node: 0746929
Node: 06349512 Node: 06349793
Node: 06250043 Node: 06250324
Node: 06150350 Node: 06150631
Node: 0650920 Node: 0651201
Node: 05253976 Node: 05254257
Node: 05154278 Node: 05154559
Node: 0554703 Node: 0554984
Node: 04956234 Node: 04956515
Node: 04856516 Node: 04856797
Node: 04756865 Node: 04757146
Node: 04657274 Node: 04657555
Node: 04557682 Node: 04557963
Node: 04458043 Node: 04458324
Node: 04358402 Node: 04358683
Node: 04258605 Node: 04258886
Node: 04158766 Node: 04159047
Node: 0459013 Node: 0459294
Node: 03263114 Node: 03263395
Node: 03163517 Node: 03163798
Node: 0363714 Node: 0363995
Node: 02367014 Node: 02367295
Node: 02267248 Node: 02267529
Node: 02167528 Node: 02167809
Node: 0267733 Node: 0268014
Node: 0171811 Node: 0172092
Node: Notes71912 Node: Notes72193
Node: Comparison with Org Agenda searches72074 Node: Comparison with Org Agenda searches72355
Node: org-sidebar72963 Node: org-sidebar73244
Node: License73242 Node: License73523
 
End Tag Table End Tag Table