Function: flymake-proc-default-guess

flymake-proc-default-guess is a byte-compiled function defined in flymake-proc.el.gz.

Signature

(flymake-proc-default-guess TEXT)

Documentation

Guess if TEXT means a warning, a note or an error.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/flymake-proc.el.gz
(defun flymake-proc-default-guess (text)
  "Guess if TEXT means a warning, a note or an error."
  (cond ((string-match "^[wW]arning" text)
         :warning)
        ((string-match "^[nN]ote" text)
         :note)
        (t
         :error)))