aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorPaul Eggert2012-02-10 10:58:48 -0800
committerPaul Eggert2012-02-10 10:58:48 -0800
commit6e6c82a4e687708d5a7a3887f92db45bd74da276 (patch)
tree85dc3105240e84a8cddadb25d572e170fcdbd8bc /lisp/progmodes/python.el
parent78df1fb1d46d556bfc2698ca1802972b13613ba8 (diff)
parentcc26d239af9a82cff079556a1daff4b4bf60eb5c (diff)
downloademacs-6e6c82a4e687708d5a7a3887f92db45bd74da276.tar.gz
emacs-6e6c82a4e687708d5a7a3887f92db45bd74da276.zip
Merge from trunk.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 0c29891cd92..15d98ce48af 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -67,6 +67,7 @@
67;;; Code: 67;;; Code:
68 68
69(require 'comint) 69(require 'comint)
70(require 'ansi-color)
70 71
71(eval-when-compile 72(eval-when-compile
72 (require 'compile) 73 (require 'compile)
@@ -1386,7 +1387,6 @@ For running multiple processes in multiple buffers, see `run-python' and
1386 1387
1387\\{inferior-python-mode-map}" 1388\\{inferior-python-mode-map}"
1388 :group 'python 1389 :group 'python
1389 (require 'ansi-color) ; for ipython
1390 (setq mode-line-process '(":%s")) 1390 (setq mode-line-process '(":%s"))
1391 (set (make-local-variable 'comint-input-filter) 'python-input-filter) 1391 (set (make-local-variable 'comint-input-filter) 'python-input-filter)
1392 (add-hook 'comint-preoutput-filter-functions #'python-preoutput-filter 1392 (add-hook 'comint-preoutput-filter-functions #'python-preoutput-filter
@@ -1530,7 +1530,6 @@ behavior, change `python-remove-cwd-from-path' to nil."
1530 (interactive (if current-prefix-arg 1530 (interactive (if current-prefix-arg
1531 (list (read-string "Run Python: " python-command) nil t) 1531 (list (read-string "Run Python: " python-command) nil t)
1532 (list python-command))) 1532 (list python-command)))
1533 (require 'ansi-color) ; for ipython
1534 (unless cmd (setq cmd python-command)) 1533 (unless cmd (setq cmd python-command))
1535 (python-check-version cmd) 1534 (python-check-version cmd)
1536 (setq python-command cmd) 1535 (setq python-command cmd)