Fix: flymake mouse-clicks.

This commit is contained in:
Vincent Zhang 2019-01-02 21:47:14 +08:00
parent 59c649e30e
commit 81be819bb2

View file

@ -1170,9 +1170,9 @@ icons."
(all-disabled "All Checkers Disabled") (all-disabled "All Checkers Disabled")
(t (format "error: %d, warning: %d, note: %d (t (format "error: %d, warning: %d, note: %d
%d/%d backends running %d/%d backends running
mouse-1: Display warnings and errors mouse-1: Display minor mode menu
mouse-2: Show help for minor mode mouse-2: Show help for minor mode
mouse-3: Next warning or error mouse-3: Display warnings and errors
wheel-up/wheel-down: Previous/Next warning or error" wheel-up/wheel-down: Previous/Next warning or error"
.error .warning .note .error .warning .note
(length running) (length known))))) (length running) (length known)))))
@ -1185,7 +1185,7 @@ wheel-up/wheel-down: Previous/Next warning or error"
(interactive) (interactive)
(describe-function 'flymake-mode))) (describe-function 'flymake-mode)))
(define-key map [mode-line mouse-3] (define-key map [mode-line mouse-3]
#'flycheck-next-error) #'flymake-show-diagnostics-buffer)
(define-key map (vector 'mode-line (define-key map (vector 'mode-line
mouse-wheel-down-event) mouse-wheel-down-event)
(lambda (event) (lambda (event)