Function: flymake-diagnostics
flymake-diagnostics is an autoloaded and byte-compiled function
defined in flymake.el.gz.
Signature
(flymake-diagnostics &optional BEG END)
Documentation
Get Flymake diagnostics in region determined by BEG and END.
If neither BEG or END is supplied, use whole accessible buffer, otherwise if BEG is non-nil and END is nil, consider only diagnostics at BEG.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/flymake.el.gz
;;;###autoload
(defun flymake-diagnostics (&optional beg end)
"Get Flymake diagnostics in region determined by BEG and END.
If neither BEG or END is supplied, use whole accessible buffer,
otherwise if BEG is non-nil and END is nil, consider only
diagnostics at BEG."
(save-restriction
(widen)
(cl-loop for o in
(cond (end (overlays-in beg end))
(beg (overlays-at beg))
(t (overlays-in (point-min) (point-max))))
when (overlay-get o 'flymake-diagnostic) collect it)))