aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Steingold2015-01-27 13:20:57 -0500
committerSam Steingold2015-01-27 13:20:57 -0500
commitbd7a1e1564d04d7ea9c7f6587ffcf02ef8975512 (patch)
treec912f484608e6a75d10373ad30d5b3e5671307e3
parentc7effd7cacc5505933c32221bb25bea791b589e0 (diff)
downloademacs-bd7a1e1564d04d7ea9c7f6587ffcf02ef8975512.tar.gz
emacs-bd7a1e1564d04d7ea9c7f6587ffcf02ef8975512.zip
minor tweaks for `python-check'
* lisp/progmodes/python.el (python-check-custom-command): Buffer local because it usually includes the buffer name. (python-check-command): Set to epylint when pyflakes is not available.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/progmodes/python.el6
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1eafe3c0e52..80dfeef3750 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12015-01-27 Sam Steingold <sds@gnu.org>
2
3 * progmodes/python.el (python-check-custom-command): Buffer local
4 because it usually includes the buffer name.
5 (python-check-command): Set to epylint when pyflakes is not available.
6
12015-01-27 Thomas Fitzsimmons <fitzsim@fitzsim.org> 72015-01-27 Thomas Fitzsimmons <fitzsim@fitzsim.org>
2 8
3 * net/eudcb-bbdb.el, net/eudcb-ldap.el, net/eudcb-mab.el, 9 * net/eudcb-bbdb.el, net/eudcb-ldap.el, net/eudcb-mab.el,
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index d298f96bc81..13ff439bef2 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -3816,7 +3816,9 @@ The skeleton will be bound to python-skeleton-NAME."
3816;;; Code check 3816;;; Code check
3817 3817
3818(defcustom python-check-command 3818(defcustom python-check-command
3819 "pyflakes" 3819 (or (executable-find "pyflakes")
3820 (executable-find "epylint")
3821 "install pyflakes, pylint or something else")
3820 "Command used to check a Python file." 3822 "Command used to check a Python file."
3821 :type 'string 3823 :type 'string
3822 :group 'python) 3824 :group 'python)
@@ -3827,7 +3829,7 @@ The skeleton will be bound to python-skeleton-NAME."
3827 :type 'string 3829 :type 'string
3828 :group 'python) 3830 :group 'python)
3829 3831
3830(defvar python-check-custom-command nil 3832(defvar-local python-check-custom-command nil
3831 "Internal use.") 3833 "Internal use.")
3832 3834
3833(defun python-check (command) 3835(defun python-check (command)