Comment 2 for bug 910783

Revision history for this message
Richard Everson (r-m-everson) wrote : Re: [Bug 910783] py-checker-run missing

Hi Andreas,

Works well for me; thanks.

Best,
Richard.

On 3 Jan 2012, at 09:55, Andreas Roehler wrote:

> ** Changed in: python-mode
> Status: Confirmed => Fix Committed
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/910783
>
> Title:
> py-checker-run missing
>
> Status in An Emacs mode for editing Python code:
> Fix Committed
>
> Bug description:
> The py-pychecker-run function is missing from the 6.0.4 distribution.
> Here's a version I found, which works ....
>
>
> ;; Pychecker
> (defun py-pychecker-run (command)
> "*Run pychecker (default on the file currently visited)."
> (interactive
> (let ((default
> (format "%s %s %s" py-pychecker-command
> (mapconcat 'identity py-pychecker-command-args " ")
> (buffer-file-name)))
> (last (when py-pychecker-history
> (let* ((lastcmd (car py-pychecker-history))
> (cmd (cdr (reverse (split-string lastcmd))))
> (newcmd (reverse (cons (buffer-file-name) cmd))))
> (mapconcat 'identity newcmd " ")))))
>
> (list
> (read-shell-command "Run pychecker like this: "
> (if last
> last
> default)
> 'py-pychecker-history))))
> (save-some-buffers (not py-ask-about-save) nil)
> (compile-internal command "No more errors"))
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/python-mode/+bug/910783/+subscriptions