Function: flymake--mode-line-exception
flymake--mode-line-exception is a byte-compiled function defined in
flymake.el.gz.
Signature
(flymake--mode-line-exception)
Documentation
Helper for flymake-mode-line-exception.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/flymake.el.gz
(defun flymake--mode-line-exception ()
"Helper for `flymake-mode-line-exception'."
(pcase-let* ((running) (reported)
(`(,ind ,face ,explain)
(cond ((zerop (hash-table-count flymake--state))
'("?" nil "No known backends"))
((cl-set-difference
(setq running (flymake-running-backends))
(setq reported (flymake-reporting-backends)))
`("Wait" compilation-mode-line-run
,(format "Waiting for %s running backend(s)"
(length (cl-set-difference running reported)))))
((and (flymake-disabled-backends) (null running))
'("!" compilation-mode-line-run
"All backends disabled"))
(t
'(nil nil nil)))))
(when ind
`(":"
(:propertize ,ind face ,face
help-echo ,explain
keymap ,(let ((map (make-sparse-keymap)))
(define-key map [mode-line mouse-1]
'flymake-switch-to-log-buffer)
map))))))