py-checker-run missing

Bug #910783 reported by Richard Everson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
Medium
Andreas Roehler

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

Changed in python-mode:
assignee: nobody → Andreas Roehler (a-roehler)
milestone: none → 6.0.5
importance: Undecided → Medium
Changed in python-mode:
status: New → Confirmed
Revision history for this message
Andreas Roehler (a-roehler) wrote :

BTW instead of a need to customize

py-checker-run

we could have

M-x pychecker
M-x pylint

Changed in python-mode:
status: Confirmed → Fix Committed
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

Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.