minor followup to prev post.
here is a place where org does not but ime is useful to push the mark.
org does similarly when you follow a link, for example.
i believe this should be done to the local and global mark rings.
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 98f6034..d410d3a 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -8640,6 +8640,7 @@ displayed Org file fills the frame."
(pop-to-buffer-same-window buffer)
(when delete-other-windows (delete-other-windows))
(widen)
+ (org-mark-ring-push)
(goto-char pos)
(when (derived-mode-p 'org-mode)
(org-show-context 'agenda)