summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2002-07-17 21:25:43 (GMT)
committerBarry Warsaw <barry@python.org>2002-07-17 21:25:43 (GMT)
commitf31ff27c57c4233a6ecde48e58322c3e3fc128f9 (patch)
tree6b502b234667dad785ba9e48fa8da7aad125d507 /Misc
parentf0b095d804389625e17e7352c984acf34170167a (diff)
downloadcpython-f31ff27c57c4233a6ecde48e58322c3e3fc128f9.zip
cpython-f31ff27c57c4233a6ecde48e58322c3e3fc128f9.tar.gz
cpython-f31ff27c57c4233a6ecde48e58322c3e3fc128f9.tar.bz2
(py-pychecker-run): Use the last pychecker invocation as the default
contents of the next command.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/python-mode.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index 50576cb..61d7ef4 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -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"))