(flymake--run-backend backend backend-args)))
nil))))))))
-(defvar-keymap flymake-mode-map
- :doc "Keymap for `flymake-mode'.")
+(defvar flymake-mode-map
+ (let ((map (make-sparse-keymap))) map)
+ "Keymap for `flymake-mode'.")
;;;###autoload
(define-minor-mode flymake-mode
(defvar-local flymake--diagnostics-buffer-source nil)
-(defvar-keymap flymake-diagnostics-buffer-mode-map
- "RET" #'flymake-goto-diagnostic
- "SPC" #'flymake-show-diagnostic)
+(defvar flymake-diagnostics-buffer-mode-map
+ (let ((map (make-sparse-keymap)))
+ (define-key map (kbd "RET") 'flymake-goto-diagnostic)
+ (define-key map (kbd "SPC") 'flymake-show-diagnostic)
+ map))
(defun flymake-show-diagnostic (pos &optional other-window)
"Show location of diagnostic at POS."