Function: embark-target-collect-candidate
embark-target-collect-candidate is a byte-compiled function defined in
embark.el.
Signature
(embark-target-collect-candidate)
Documentation
Target the collect candidate at point.
Source Code
;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
(defun embark-target-collect-candidate ()
"Target the collect candidate at point."
(when (derived-mode-p 'embark-collect-mode)
(when-let* ((button
(pcase (get-text-property (point) 'tabulated-list-column-name)
("Candidate" (button-at (point)))
("Annotation" (previous-button (point)))))
(start (button-start button))
(end (button-end button))
(candidate (tabulated-list-get-id)))
`(,embark--type
,(if (eq embark--type 'file)
(abbreviate-file-name (expand-file-name candidate))
candidate)
,start . ,end))))