diff --git a/src/plugins/django.el b/src/plugins/django.el index 1d22408..6ca8cd9 100644 --- a/src/plugins/django.el +++ b/src/plugins/django.el @@ -179,16 +179,17 @@ binding for Kuso IDE django plugin" (defun pylint-check-current-buffer () "Run pylint on current buffer." (interactive) - (let (cbuffer-file pylint-buffer) + (let (cbuffer-file pylint-buffer commandp) (setq cbuffer-file (buffer-file-name)) - (if (string cbuffer-file) + (if (stringp cbuffer-file) (progn - (setq pylint-buffer (get-buffer-create "*Pylint*")) - (ansi-color-for-comint-mode-on) - (switch-to-buffer pylint-buffer) - (add-hook 'after-change-functions 'buffer-change-colorizing t t) - (setq fullcommand (concat "-f colorized " cbuffer-file)) - (setq commandp (apply 'make-comint-in-buffer "pylint" pylint-buffer "pylint" nil (list fullcommand command))) + (setq pylint-buffer (get-buffer-create "*Pylint*")) + (ansi-color-for-comint-mode-on) + (switch-to-buffer pylint-buffer) + (add-hook 'after-change-functions 'buffer-change-colorizing t t) + (setq fullcommand (concat "pylint -f colorized " cbuffer-file)) + (setq commandp (start-process-shell-command "pylint" pylint-buffer fullcommand)) + ;;(setq commandp (apply 'make-comint-in-buffer "pylint" pylint-buffer "pylint" nil (list fullcommand))) ) (message "This buffer did not visit any file.")