Function: eglot--flymake-report-1

eglot--flymake-report-1 is a macro defined in eglot.el.gz.

Signature

(eglot--flymake-report-1 DIAGS MODE &key (VERSION 'eglot--docver) FORCE)

Documentation

Maybe convert, report and store the diagnostics objects DIAGS.

DIAGS is either a vector of LSP diagnostics or a list of Flymake diagnostics. MODE can be :stay or :clear depending on whether we want to accumulate or reset diagnostics in the buffer. VERSION is the version the diagnostics pertain to.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(cl-defmacro eglot--flymake-report-1 (diags mode &key (version 'eglot--docver) force)
  "Maybe convert, report and store the diagnostics objects DIAGS.
DIAGS is either a vector of LSP diagnostics or a list of Flymake
diagnostics.  MODE can be `:stay' or `:clear' depending on whether we
want to accumulate or reset diagnostics in the buffer.  VERSION is the
version the diagnostics pertain to."
  ;; JT@2026-01-10: criteria for "incremental" reports could be
  ;; tightened to e.g. check eglot--capf-session nillness, but we'd have
  ;; to schedule an after-session re-report, and that's way too complex
  `(when (and (or ,force flymake-no-changes-timeout)
              eglot--flymake-report-fn)
     (when (and ,diags (vectorp ,diags))
       (setf ,diags
             (eglot--collecting-ranged (o r ,diags)
               (eglot--flymake-make-diag o ,version r))))
     (eglot--flymake-report-2 ,diags ,mode)))