Variable: flymake-proc-diagnostic-type-pred
flymake-proc-diagnostic-type-pred is a variable defined in
flymake-proc.el.gz.
Value
flymake-proc-default-guess
Documentation
Predicate matching against diagnostic text to detect its type.
Takes a single argument, the diagnostic's text and should return
a diagnostic symbol naming a type. If the returned value is nil,
a type of :error is assumed. For some backward compatibility,
if a non-nil value is returned that doesn't name a type,
:warning is assumed.
Instead of a function, it can also be a string, a regular
expression. A match indicates :warning type, otherwise
:error
Aliases
flymake-warning-re (obsolete since 26.1)
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/flymake-proc.el.gz
(defvar flymake-proc-diagnostic-type-pred
'flymake-proc-default-guess
"Predicate matching against diagnostic text to detect its type.
Takes a single argument, the diagnostic's text and should return
a diagnostic symbol naming a type. If the returned value is nil,
a type of `:error' is assumed. For some backward compatibility,
if a non-nil value is returned that doesn't name a type,
`:warning' is assumed.
Instead of a function, it can also be a string, a regular
expression. A match indicates `:warning' type, otherwise
`:error'")