emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master bd7a1e1: minor tweaks for `python-check'


From: Sam Steingold
Subject: [Emacs-diffs] master bd7a1e1: minor tweaks for `python-check'
Date: Tue, 27 Jan 2015 18:21:08 +0000

branch: master
commit bd7a1e1564d04d7ea9c7f6587ffcf02ef8975512
Author: Sam Steingold <address@hidden>
Commit: Sam Steingold <address@hidden>

    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.
---
 lisp/ChangeLog           |    6 ++++++
 lisp/progmodes/python.el |    6 ++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1eafe3c..80dfeef 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
+2015-01-27  Sam Steingold  <address@hidden>
+
+       * 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.
+
 2015-01-27  Thomas Fitzsimmons  <address@hidden>
 
        * 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 d298f96..13ff439 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -3816,7 +3816,9 @@ The skeleton will be bound to python-skeleton-NAME."
 ;;; Code check
 
 (defcustom python-check-command
-  "pyflakes"
+  (or (executable-find "pyflakes")
+      (executable-find "epylint")
+      "install pyflakes, pylint or something else")
   "Command used to check a Python file."
   :type 'string
   :group 'python)
@@ -3827,7 +3829,7 @@ The skeleton will be bound to python-skeleton-NAME."
   :type 'string
   :group 'python)
 
-(defvar python-check-custom-command nil
+(defvar-local python-check-custom-command nil
   "Internal use.")
 
 (defun python-check (command)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]