From 773625778d06aa8d8f4423f249b5148a7a34f190 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 20 Apr 2014 13:35:11 -0700 Subject: [PATCH] Fix mo-git-blame/pyflakes issue. --- emacs-for-python | 2 +- init.el | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/emacs-for-python b/emacs-for-python index 8e09525a..d78de883 160000 --- a/emacs-for-python +++ b/emacs-for-python @@ -1 +1 @@ -Subproject commit 8e09525a0f2f38cf249a70896c9e3d8815268b26 +Subproject commit d78de88302dd6fec15f5887222e63ab41eb76ecf diff --git a/init.el b/init.el index 4d2e8cab..ddb97128 100644 --- a/init.el +++ b/init.el @@ -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