]> git.eshelyaron.com Git - emacs.git/commitdiff
Include a help-echo for flymake's modeline counters
authorSpencer Baugh <sbaugh@catern.com>
Sun, 2 Jul 2023 16:11:09 +0000 (12:11 -0400)
committerEli Zaretskii <eliz@gnu.org>
Mon, 3 Jul 2023 11:11:41 +0000 (14:11 +0300)
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.  (Bug#64424)

lisp/progmodes/flymake.el

index 6f293acca5e2df67adedf980072f57a3ef5d0de6..47dc32f9245d9d21f421af1e63806a2f81b0a92c 100644 (file)
@@ -1473,6 +1473,12 @@ TYPE is usually keyword `:error', `:warning' or `:note'."
          ,(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