[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
- [Emacs-diffs] scratch/flymake-refactor updated (60bbf1c -> 646c0b2), João Távora, 2017/10/01
- [Emacs-diffs] scratch/flymake-refactor 879bb3b 1/6: * lisp/progmodes/flymake-ui.el (flymake-no-changes-timeout): Improve doc, João Távora, 2017/10/01
- [Emacs-diffs] scratch/flymake-refactor f5bcdfe 3/6: Restore flymake-mode-map, even if empty.,
João Távora <=
- [Emacs-diffs] scratch/flymake-refactor bcc509f 2/6: squash in no changes-timeout, João Távora, 2017/10/01
- [Emacs-diffs] scratch/flymake-refactor efcdd96 5/6: Capitalize "Flymake" in docstrings and comments, João Távora, 2017/10/01
- [Emacs-diffs] scratch/flymake-refactor fb7a2ab 4/6: Flymake backends can report multiple times per check, João Távora, 2017/10/01
- [Emacs-diffs] scratch/flymake-refactor 646c0b2 6/6: Resolve some dependency yuckiness in flymake.el, João Távora, 2017/10/01