]> granicus.if.org Git - python/commitdiff
(py-pychecker-run): Use the last pychecker invocation as the default
authorBarry Warsaw <barry@python.org>
Wed, 17 Jul 2002 21:25:43 +0000 (21:25 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 17 Jul 2002 21:25:43 +0000 (21:25 +0000)
contents of the next command.

Misc/python-mode.el

index 50576cb55748a286f5824eddbeb9ee076850b78d..61d7ef4629f938b22671dc0d41872bddad703949 100644 (file)
@@ -2774,7 +2774,9 @@ A `nomenclature' is a fancy way of saying AWordWithMixedCaseNotUnderscores."
 
      (list
       (read-shell-command "Run pychecker like this: "
-                          default
+                          (if py-pychecker-history
+                             (car py-pychecker-history)
+                           default)
                           'py-pychecker-history))))
   (save-some-buffers (not py-ask-about-save) nil)
   (compile-internal command "No more errors"))