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.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index b08da8da029..d1dd9bef4bc 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2357,7 +2357,8 @@ variable.
2357 (set (make-local-variable 'python-shell--prompt-calculated-input-regexp) nil) 2357 (set (make-local-variable 'python-shell--prompt-calculated-input-regexp) nil)
2358 (set (make-local-variable 'python-shell--prompt-calculated-output-regexp) nil) 2358 (set (make-local-variable 'python-shell--prompt-calculated-output-regexp) nil)
2359 (python-shell-prompt-set-calculated-regexps) 2359 (python-shell-prompt-set-calculated-regexps)
2360 (setq comint-prompt-regexp python-shell--prompt-calculated-input-regexp) 2360 (setq comint-prompt-regexp python-shell--prompt-calculated-input-regexp
2361 comint-prompt-read-only t)
2361 (setq mode-line-process '(":%s")) 2362 (setq mode-line-process '(":%s"))
2362 (set (make-local-variable 'comint-output-filter-functions) 2363 (set (make-local-variable 'comint-output-filter-functions)
2363 '(ansi-color-process-output 2364 '(ansi-color-process-output
@@ -2381,6 +2382,10 @@ variable.
2381 (compilation-shell-minor-mode 1) 2382 (compilation-shell-minor-mode 1)
2382 ;; Ensure all the output is accepted before running any hooks. 2383 ;; Ensure all the output is accepted before running any hooks.
2383 (accept-process-output (get-buffer-process (current-buffer))) 2384 (accept-process-output (get-buffer-process (current-buffer)))
2385 ;; At this point, all process output should have been received, but
2386 ;; on GNU/Linux, calling `python-shell-internal-send-string' without
2387 ;; a running internal shell fails to grab output properly unless
2388 ;; this `sit-for' is in place.
2384 (sit-for 0.1 t)) 2389 (sit-for 0.1 t))
2385 2390
2386(defun python-shell-make-comint (cmd proc-name &optional pop internal) 2391(defun python-shell-make-comint (cmd proc-name &optional pop internal)