Function: flymake--mode-line-counter

flymake--mode-line-counter is a byte-compiled function defined in flymake.el.gz.

Signature

(flymake--mode-line-counter TYPE)

Documentation

Compute number of diagnostics in buffer with TYPE's severity.

TYPE is usually keyword :error, :warning or :note.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/flymake.el.gz
(defun flymake--mode-line-counter (type)
  "Compute number of diagnostics in buffer with TYPE's severity.
TYPE is usually keyword `:error', `:warning' or `:note'."
  (let ((probe (alist-get type flymake--mode-line-counter-cache 'none)))
    (if (eq probe 'none)
        (setf (alist-get type flymake--mode-line-counter-cache)
            (flymake--mode-line-counter-1 type))
      probe)))