Function: flymake--format-diagnostic
flymake--format-diagnostic is a byte-compiled function defined in
flymake.el.gz.
Signature
(flymake--format-diagnostic DIAG DESTINATION FACE-PROP)
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/flymake.el.gz
(defun flymake--format-diagnostic (diag destination face-prop)
(let ((txt (flymake-diagnostic-text
diag (alist-get destination flymake-diagnostic-format-alist
(alist-get t flymake-diagnostic-format-alist
'(origin code message))))))
(if face-prop
(propertize txt 'face
(flymake--lookup-type-property
(flymake-diagnostic-type diag) face-prop
'flymake-error))
txt)))