pylint tested.

This commit is contained in:
lxsameer 2011-06-03 09:14:11 +04:30
parent 6ae81bdac7
commit 1a0822a331
1 changed files with 9 additions and 8 deletions

View File

@ -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.")