Function: embark--format-targets
embark--format-targets is a byte-compiled function defined in
embark.el.
Signature
(embark--format-targets TARGET SHADOWED-TARGETS REP)
Documentation
Return a formatted string indicating the TARGET of an action.
This is used internally by the minimal indicator and for the targets section of the verbose indicator. The string will also mention any SHADOWED-TARGETS. A non-nil REP indicates we are in a repeating sequence of actions.
Source Code
;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
(defun embark--format-targets (target shadowed-targets rep)
"Return a formatted string indicating the TARGET of an action.
This is used internally by the minimal indicator and for the
targets section of the verbose indicator. The string will also
mention any SHADOWED-TARGETS. A non-nil REP indicates we are in
a repeating sequence of actions."
(let ((act (propertize
(cond
((plist-get target :multi) "∀ct")
(rep "Rep")
(t "Act"))
'face 'highlight)))
(cond
((eq (plist-get target :type) 'embark-become)
(propertize "Become" 'face 'highlight))
((and (minibufferp)
(not (eq 'embark-keybinding
(completion-metadata-get
(embark--metadata)
'category))))
;; we are in a minibuffer but not from the
;; completing-read prompter, use just "Act"
act)
((plist-get target :multi)
(format "%s on %s %ss"
act
(plist-get target :multi)
(plist-get target :type)))
(t (format
"%s on %s%s ‘%s’"
act
(plist-get target :type)
(if shadowed-targets
(format (propertize "(%s)" 'face 'shadow)
(mapconcat
(lambda (target) (symbol-name (plist-get target :type)))
shadowed-targets
", "))
"")
(embark--truncate-target (plist-get target :target)))))))