Function: flymake--lookup-type-property
flymake--lookup-type-property is a byte-compiled function defined in
flymake.el.gz.
Signature
(flymake--lookup-type-property TYPE PROP &optional DEFAULT)
Documentation
Look up PROP for diagnostic TYPE.
If TYPE doesn't declare PROP in its plist or in the symbol of its
associated flymake-category return DEFAULT.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/flymake.el.gz
(defun flymake--lookup-type-property (type prop &optional default)
"Look up PROP for diagnostic TYPE.
If TYPE doesn't declare PROP in its plist or in the symbol of its
associated `flymake-category' return DEFAULT."
;; This function also consults `flymake-diagnostic-types-alist' for
;; backward compatibility.
;;
(if (plist-member (symbol-plist type) prop)
;; allow nil values to survive
(get type prop)
(let (alist)
(or
(alist-get
prop (setq
alist
(alist-get type flymake-diagnostic-types-alist)))
(when-let* ((cat (or
(get type 'flymake-category)
(alist-get 'flymake-category alist)))
(plist (and (symbolp cat)
(symbol-plist cat)))
(cat-probe (plist-member plist prop)))
(cadr cat-probe))
default))))