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
Hi Andreas,
Works well for me; thanks.
Best,
Richard.
On 3 Jan 2012, at 09:55, Andreas Roehler wrote:
> ** Changed in: python-mode /bugs.launchpad .net/bugs/ 910783 command command- args " ") file-name) )) history history) ) history) ))) /bugs.launchpad .net/python- mode/+bug/ 910783/ +subscriptions
> Status: Confirmed => Fix Committed
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> 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-
> (mapconcat 'identity py-pychecker-
> (buffer-
> (last (when py-pychecker-
> (let* ((lastcmd (car py-pychecker-
> (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-
> (save-some-buffers (not py-ask-about-save) nil)
> (compile-internal command "No more errors"))
>
> To manage notifications about this bug go to:
> https:/