Function: flymake-eldoc-function

flymake-eldoc-function is a byte-compiled function defined in flymake.el.gz.

Signature

(flymake-eldoc-function REPORT-DOC &rest _)

Documentation

Document diagnostics at point.

Intended for eldoc-documentation-functions (which see).

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/flymake.el.gz
(defun flymake-eldoc-function (report-doc &rest _)
  "Document diagnostics at point.
Intended for `eldoc-documentation-functions' (which see)."
  (when-let* ((diags (flymake-diagnostics (point))))
    (funcall report-doc
             (mapconcat (lambda (d)
                          (flymake--format-diagnostic d :eldoc 'echo-face))
                        diags "\n")
             :echo (mapconcat
                    (lambda (d)
                      (flymake--format-diagnostic d :eldoc-echo 'echo-face))
                    diags "\n"))))