branch: externals/flymake-clippy commit 2ff39165ac788ab7ff2ea3e9ed4b0a3f2b9c31ef Author: Michael Kirkland <mak.kirkl...@proton.me> Commit: Michael Kirkland <mak.kirkl...@proton.me>
Fallback message level to :note In case messages are not of type "error" or "warning" (e.g if Clippy introduces new message levels) then we will default the flymake diagnostic to type :note. --- clippy-flymake.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clippy-flymake.el b/clippy-flymake.el index 5d37727e51..6fd6bcd8cb 100644 --- a/clippy-flymake.el +++ b/clippy-flymake.el @@ -121,7 +121,8 @@ to the reported line and column numbers" (message (clippy-flymake--include-help diagnostic message)) (type (pcase level ("error" :error) - ("warning" :warning))) + ("warning" :warning) + (_ :note))) (beg (with-current-buffer source-buffer (clippy-flymake-line-col-buffer-position start-line start-col)))