diff options
| author | Stefan Monnier | 2024-02-23 11:39:26 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2024-02-23 11:39:26 -0500 |
| commit | c0d7f7fc54f6c67f409e75f20ebb4420d96c71a6 (patch) | |
| tree | fd9f98a8e6e3884e31ed966113e59c8561dab05f | |
| parent | 3599a9a1cf1f8bed7c7f00fd8f00b2bfc0c4271f (diff) | |
| parent | 2b7dc7fef814753f1c6d4c352fe69bb6e167cd07 (diff) | |
| download | emacs-c0d7f7fc54f6c67f409e75f20ebb4420d96c71a6.tar.gz emacs-c0d7f7fc54f6c67f409e75f20ebb4420d96c71a6.zip | |
Merge remote-tracking branch 'refs/remotes/origin/master'
| -rw-r--r-- | lisp/progmodes/flymake.el | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 5974f076556..db00cc59c0e 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el | |||
| @@ -1569,13 +1569,19 @@ correctly.") | |||
| 1569 | ,flymake-mode-line-lighter | 1569 | ,flymake-mode-line-lighter |
| 1570 | mouse-face mode-line-highlight | 1570 | mouse-face mode-line-highlight |
| 1571 | help-echo | 1571 | help-echo |
| 1572 | ,(lambda (&rest _) | 1572 | ,(lambda (w &rest _) |
| 1573 | (concat | 1573 | (with-current-buffer (window-buffer w) |
| 1574 | (format "%s known backends\n" (hash-table-count flymake--state)) | 1574 | ;; Mouse can activate tool-tip without window being active. |
| 1575 | (format "%s running\n" (length (flymake-running-backends))) | 1575 | ;; `flymake--state' is buffer local and is null when line |
| 1576 | (format "%s disabled\n" (length (flymake-disabled-backends))) | 1576 | ;; lighter appears in *Help* `describe-mode'. |
| 1577 | "mouse-1: Display minor mode menu\n" | 1577 | (concat |
| 1578 | "mouse-2: Show help for minor mode")) | 1578 | (unless (null flymake--state) |
| 1579 | (concat | ||
| 1580 | (format "%s known backends\n" (hash-table-count flymake--state)) | ||
| 1581 | (format "%s running\n" (length (flymake-running-backends))) | ||
| 1582 | (format "%s disabled\n" (length (flymake-disabled-backends))))) | ||
| 1583 | "mouse-1: Display minor mode menu\n" | ||
| 1584 | "mouse-2: Show help for minor mode"))) | ||
| 1579 | keymap | 1585 | keymap |
| 1580 | ,(let ((map (make-sparse-keymap))) | 1586 | ,(let ((map (make-sparse-keymap))) |
| 1581 | (define-key map [mode-line down-mouse-1] | 1587 | (define-key map [mode-line down-mouse-1] |