feat(emacs/lean-flycheck): "real" .clean file instead of "flycheck_real.clean"

Fix #140
This commit is contained in:
Soonho Kong 2014-09-08 23:48:39 -07:00
parent f39e21f90e
commit 4eb8a9b192

View file

@ -11,6 +11,8 @@
(cl-concatenate 'list
`(,(lean-get-executable lean-flycheck-checker-name))
lean-flycheck-checker-options
'("--cache")
'(source-original)
'("--")
'(source-inplace)))
@ -75,7 +77,7 @@
(tempbase (file-name-base tempname))
(tempfile (expand-file-name tempbase
(file-name-directory filename)))
(exts '(".ilean" ".d" ".clean" ".olean"))
(exts '(".ilean" ".d" ".olean"))
(tempfiles (--map (concat tempfile it) exts)))
(mapc #'flycheck-safe-delete tempfiles))))