Fix mo-git-blame/pyflakes issue.

This commit is contained in:
Ivan Malison 2014-04-20 13:35:11 -07:00
parent efa71e12f5
commit 773625778d
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 8e09525a0f2f38cf249a70896c9e3d8815268b26
Subproject commit d78de88302dd6fec15f5887222e63ab41eb76ecf

View File

@ -173,7 +173,7 @@ Return a list of installed packages or nil for every package not installed."
(defun flymake-pylint-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-inplace))
'flymake-create-temp-inplace))
(local-file (file-relative-name
temp-file
(file-name-directory buffer-file-name))))
@ -183,7 +183,7 @@ Return a list of installed packages or nil for every package not installed."
; Load flymake on non-temp buffers
(add-hook 'python-mode-hook
(lambda () (unless (eq buffer-file-name nil) (flymake-mode 1))))
(lambda () (unless (or (eq buffer-file-name nil) (eq (file-name-directory buffer-file-name) nil)) (flymake-mode 1))))
;; =============================================================================
;; Python