mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-04 19:29:37 +00:00
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. (Bug#64424)
This commit is contained in:
parent
37ed3d15f3
commit
a9b46bb25d
1 changed files with 6 additions and 0 deletions
|
@ -1473,6 +1473,12 @@ TYPE is usually keyword `:error', `:warning' or `:note'."
|
||||||
,(format "%d" count)
|
,(format "%d" count)
|
||||||
face ,face
|
face ,face
|
||||||
mouse-face mode-line-highlight
|
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
|
keymap
|
||||||
,(let ((map (make-sparse-keymap)))
|
,(let ((map (make-sparse-keymap)))
|
||||||
(define-key map (vector 'mode-line
|
(define-key map (vector 'mode-line
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue