aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 4617ecc420d..001c28a00fa 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1615,11 +1615,12 @@ with user shells. Runs the hook
1615`inferior-python-mode-hook' (after the `comint-mode-hook' is 1615`inferior-python-mode-hook' (after the `comint-mode-hook' is
1616run). \(Type \\[describe-mode] in the process buffer for a list 1616run). \(Type \\[describe-mode] in the process buffer for a list
1617of commands.)" 1617of commands.)"
1618 (set-process-query-on-exit-flag 1618 (let ((python-shell-enable-font-lock nil))
1619 (get-buffer-process 1619 (set-process-query-on-exit-flag
1620 (python-shell-make-comint 1620 (get-buffer-process
1621 (python-shell-parse-command) 1621 (python-shell-make-comint
1622 (python-shell-internal-get-process-name))) nil)) 1622 (python-shell-parse-command)
1623 (python-shell-internal-get-process-name))) nil)))
1623 1624
1624(defun python-shell-get-process () 1625(defun python-shell-get-process ()
1625 "Get inferior Python process for current buffer and return it." 1626 "Get inferior Python process for current buffer and return it."