aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2012-05-17 00:03:34 -0300
committerFabián Ezequiel Gallina2012-05-17 00:03:34 -0300
commitbba416bcf2bc4270420bf99f6a28b06f9e4e68b3 (patch)
tree62576b412d5a29541390377a4f023d6508ad76c1 /lisp/progmodes/python.el
parentc4b155cb4982649123e70d89bccb439a067a5e72 (diff)
downloademacs-bba416bcf2bc4270420bf99f6a28b06f9e4e68b3.tar.gz
emacs-bba416bcf2bc4270420bf99f6a28b06f9e4e68b3.zip
Enhancements on python-check command.
Use pyflakes (PyChecker is dead) and run the process respecting virtualenv rules.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index def6d8bba94..5406d74f69e 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2144,7 +2144,7 @@ The skeleton will be bound to python-skeleton-NAME."
2144;;; Code check 2144;;; Code check
2145 2145
2146(defcustom python-check-command 2146(defcustom python-check-command
2147 "pychecker --stdlib" 2147 "pyflakes"
2148 "Command used to check a Python file." 2148 "Command used to check a Python file."
2149 :type 'string 2149 :type 'string
2150 :group 'python) 2150 :group 'python)
@@ -2168,7 +2168,9 @@ Runs COMMAND, a shell command, as if by `compile'. See
2168 ""))))))) 2168 "")))))))
2169 (setq python-check-custom-command command) 2169 (setq python-check-custom-command command)
2170 (save-some-buffers (not compilation-ask-about-save) nil) 2170 (save-some-buffers (not compilation-ask-about-save) nil)
2171 (compilation-start command)) 2171 (let ((process-environment (python-shell-calculate-process-environment))
2172 (exec-path (python-shell-calculate-exec-path)))
2173 (compilation-start command)))
2172 2174
2173 2175
2174;;; Eldoc 2176;;; Eldoc