Previous: , Up: Flymake API [Contents][Index]


2.3 Inspecting diagnostics

When Flymake has called on the backend and collected its diagnostics, it will annotate the buffer with it. After this happens, Elisp programs may call flymake-diagnostics to collect such objects in a specified region.

Function: flymake-diagnostics beg end

Get a list of Flymake diagnostics in the region determined by beg and end. If neither beg or end is supplied, use the whole buffer, otherwise if beg is non-nil and end is nil, consider only diagnostics at beg.

A diagnostic object’s properties can be accessed with the functions flymake-diagnostic-backend, flymake-diagnostic-buffer, flymake-diagnostic-origin, flymake-diagnostic-code flymake-diagnostic-message, flymake-diagnostic-beg, flymake-diagnostic-end, flymake-diagnostic-type and flymake-diagnostic-data. flymake-diagnostic-text will compose the diagnostic’s origin, code and message in a single string.

AltStyle によって変換されたページ (->オリジナル) /