diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fbbce6e4db7..4a54d4e2df6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-07-28 Fabián Ezequiel Gallina <fgallina@gnu.org> | ||
| 2 | |||
| 3 | * progmodes/python.el (inferior-python-mode): Make input prompts | ||
| 4 | read-only. | ||
| 5 | |||
| 1 | 2014-07-28 Emilio C. Lopes <eclig@gmx.net> | 6 | 2014-07-28 Emilio C. Lopes <eclig@gmx.net> |
| 2 | 7 | ||
| 3 | * net/tramp-sh.el (tramp-get-remote-python): Also search for | 8 | * net/tramp-sh.el (tramp-get-remote-python): Also search for |
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) |