>From aa577647a91c295fedcff4c1357ebb1f6c0d1384 Mon Sep 17 00:00:00 2001 From: Spencer Baugh Date: Sun, 2 Jul 2023 12:11:09 -0400 Subject: [PATCH] Include a help-echo for flymake's modeline counters This helps clarify what each of these numbers mean. This is inspired by compilation-mode-line-errors which does the same. * lisp/progmodes/flymake.el (flymake--mode-line-counter): Add help-echo to mode line properties. --- lisp/progmodes/flymake.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 6f293acca5e..47dc32f9245 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el @@ -1473,6 +1473,12 @@ flymake--mode-line-counter ,(format "%d" count) face ,face mouse-face mode-line-highlight + help-echo ,(format "Number of %s; scroll mouse to view." + (cond + ((eq type :error) "errors") + ((eq type :warning) "warnings") + ((eq type :note) "notes") + (t (format "%s diagnostics" type)))) keymap ,(let ((map (make-sparse-keymap))) (define-key map (vector 'mode-line -- 2.40.1