Function: embark-org-target-agenda-item
embark-org-target-agenda-item is a byte-compiled function defined in
embark-org.el.
Signature
(embark-org-target-agenda-item)
Documentation
Target Org agenda item at point.
Source Code
;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark-org.el
;;; References to Org headings, such as agenda items
;; These are targets that represent an org heading but not in the
;; current buffer, instead they have a text property named
;; `org-marker' that points to the actual heading.
(defun embark-org-target-agenda-item ()
"Target Org agenda item at point."
(when (and (derived-mode-p 'org-agenda-mode)
(get-text-property (line-beginning-position) 'org-marker))
(let ((start (+ (line-beginning-position) (current-indentation)))
(end (line-end-position)))
`(org-heading ,(buffer-substring start end) ,start . ,end))))