emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] scratch/flymake-refactor f5bcdfe 3/6: Restore flymake-mode


From: João Távora
Subject: [Emacs-diffs] scratch/flymake-refactor f5bcdfe 3/6: Restore flymake-mode-map, even if empty.
Date: Sun, 1 Oct 2017 08:06:19 -0400 (EDT)

branch: scratch/flymake-refactor
commit f5bcdfe9f9e8f513abffced4e990b56902281830
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    Restore flymake-mode-map, even if empty.
    
    * lisp/progmodes/flymake-ui.el (flymake-mode-map): New variable.
    (flymake-mode): Use it.
---
 lisp/progmodes/flymake-ui.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/lisp/progmodes/flymake-ui.el b/lisp/progmodes/flymake-ui.el
index b593c5f..9d95bf8 100644
--- a/lisp/progmodes/flymake-ui.el
+++ b/lisp/progmodes/flymake-ui.el
@@ -617,10 +617,12 @@ backends."
         (add-hook 'post-command-hook #'start 'append 'local)
       (start))))
 
+(defvar flymake-mode-map
+  (let ((map (make-sparse-keymap))) map)
+  "Keymap for `flymake-mode'")
+
 (define-minor-mode flymake-mode nil
-  :group 'flymake :lighter flymake--mode-line-format
-  (setq flymake--running-backends nil
-        flymake--disabled-backends nil)
+  :group 'flymake :lighter flymake--mode-line-format :keymap flymake-mode-map
   (cond
    ;; Turning the mode ON.
    (flymake-mode



reply via email to

[Prev in Thread] Current Thread [Next in Thread]