Function: embark-org-insert-link-to
embark-org-insert-link-to is a byte-compiled function defined in
embark-org.el.
Signature
(embark-org-insert-link-to TARGET)
Documentation
Insert a link to the TARGET in the source window.
If TARGET is an agenda item and other-window-for-scrolling is
displaying an org mode buffer, then that is the source window.
If TARGET is a minibuffer completion candidate, then the source
window is the window selected before the command that opened the
minibuffer ran.
Source Code
;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark-org.el
(defun embark-org-insert-link-to (target)
"Insert a link to the TARGET in the source window.
If TARGET is an agenda item and `other-window-for-scrolling' is
displaying an org mode buffer, then that is the source window.
If TARGET is a minibuffer completion candidate, then the source
window is the window selected before the command that opened the
minibuffer ran."
(embark-org--in-source-window target
(lambda (marker)
(org-with-point-at marker (org-store-link nil t))
(org-insert-all-links 1 "" ""))))