From 1a0822a33144dc8d07353916ac01d5afe6d7a80e Mon Sep 17 00:00:00 2001 From: lxsameer Date: Fri, 3 Jun 2011 09:14:11 +0430 Subject: [PATCH] pylint tested. --- src/plugins/django.el | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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.")