Skip to content

Commit

Permalink
Merge pull request #108 from ngaranko/master
Browse files Browse the repository at this point in the history
Move flymake' temp files into system $TMP directory.
  • Loading branch information
gabrielelanaro committed Feb 5, 2013
2 parents 08012bc + fb6f51e commit ac1b31e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion epy-python.el
Expand Up @@ -69,10 +69,13 @@
;; Flymake additions, I have to put this one somwhere else?
;;=========================================================

(defun flymake-create-temp-in-system-tempdir (filename prefix)
(make-temp-file (or prefix "flymake")))

(defun flymake-create-copy-file ()
"Create a copy local file"
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-inplace)))
'flymake-create-temp-in-system-tempdir)))

This comment has been minimized.

Copy link
@linnik

linnik Feb 7, 2013

that actually brokes relative imports (like "from .module import test") validation when using pylint

(file-relative-name
temp-file
(file-name-directory buffer-file-name))))
Expand Down

0 comments on commit ac1b31e

Please sign in to comment.