Function: embark-eldoc-target-types

embark-eldoc-target-types is an autoloaded and byte-compiled function defined in embark.el.

Signature

(embark-eldoc-target-types REPORT &rest _)

Documentation

Eldoc function reporting the types of all Embark targets at point.

This function uses the eldoc REPORT callback and is meant to be added to eldoc-documentation-functions.

Source Code

;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
;;;###autoload
(defun embark-eldoc-target-types (report &rest _)
  "Eldoc function reporting the types of all Embark targets at point.
This function uses the eldoc REPORT callback and is meant to be
added to `eldoc-documentation-functions'."
  (when-let* ((_ (not (minibufferp)))
              (targets (let (file-name-handler-alist) ;; Prevent Tramp slowdown.
                         (embark--targets))))
    (funcall report
             (format "Embark target types: %s"
                     (mapconcat
                      (lambda (target) (symbol-name (plist-get target :type)))
                      targets
                      ", ")))))