]> git.eshelyaron.com Git - emacs.git/commit
Add flymake-backends defcustom
authorJoão Távora <joaotavora@gmail.com>
Thu, 17 Aug 2017 13:18:00 +0000 (14:18 +0100)
committerJoão Távora <joaotavora@gmail.com>
Thu, 17 Aug 2017 13:18:00 +0000 (14:18 +0100)
commit13993c46a21495167517f76d2e36b6c09ac5e89e
tree31002875c3e8f9cb3e41575afed1e3c56f0d864a
parenteb34f7f5a29e7bf62326ecb6e693f28878be28cd
Add flymake-backends defcustom

* lisp/progmodes/flymake-proc.el (flymake-proc-can-syntax-check-buffer):
Rename from flymake-can-syntax-check-file.  Suitable for adding to
flymake-backends.
(flymake-proc-start-syntax-check): Rename from
flymake-start-syntax-check.  Don't check again if buffer can be
checked.
(add-to-list flymake-backends): Hook only flymake-ui.el

* lisp/progmodes/flymake-ui.el (flymake-backends): New
defcustom.
(flymake-on-timer-event, flymake-after-change-function)
(flymake-after-save-hook, flymake-find-file-hook): Call new
flymake--start-syntax-check-buffer and
flymake--can-syntax-check-buffer.
(flymake-mode): Call flymake--can-syntax-check-buffer and set
flymake-backend.
(flymake--backend): New buffer-local variable.
lisp/progmodes/flymake-proc.el
lisp/progmodes/flymake-ui.el