changeset 91:075b45c5aecc

cd to the file dir before running pyflakes to make output less verbose.
author Augie Fackler <durin42@gmail.com>
date Tue, 21 Apr 2009 11:07:13 -0500
parents 9f4b375f5d8e
children 2563edf11e59
files .elisp/settings/50.localfuncs.el
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.elisp/settings/50.localfuncs.el
+++ b/.elisp/settings/50.localfuncs.el
@@ -1,3 +1,7 @@
 (defun pyflakes-this-buffer ()
   (interactive)
-  (compilation-start (concat "pyflakes " buffer-file-name) nil (lambda (mode) "*pyflakes*")))
+  (compilation-start (concat "cd  "
+                             (file-name-directory buffer-file-name)
+                             "; pyflakes " (file-name-nondirectory buffer-file-name))
+                     nil
+                     (lambda (mode) "*pyflakes*")))