diff options
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index c38a6e82f83..4821376ec7b 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -1373,11 +1373,16 @@ COMMAND should be a single statement." | |||
| 1373 | (let ((end (marker-position (process-mark (python-proc))))) | 1373 | (let ((end (marker-position (process-mark (python-proc))))) |
| 1374 | (with-current-buffer python-buffer (goto-char (point-max))) | 1374 | (with-current-buffer python-buffer (goto-char (point-max))) |
| 1375 | (compilation-forget-errors) | 1375 | (compilation-forget-errors) |
| 1376 | ;; Must wait until this has completed before re-setting variables below. | 1376 | (python-send-string command) |
| 1377 | (python-send-receive (concat command "; print '_emacs_out ()'")) | ||
| 1378 | (with-current-buffer python-buffer | 1377 | (with-current-buffer python-buffer |
| 1379 | (set-marker compilation-parsing-end end) | 1378 | (setq compilation-last-buffer (current-buffer))) |
| 1380 | (setq compilation-last-buffer (current-buffer))))) | 1379 | ;; No idea what this is for but it breaks the call to |
| 1380 | ;; compilation-fake-loc in python-send-region. -- Stef | ||
| 1381 | ;; Must wait until this has completed before re-setting variables below. | ||
| 1382 | ;; (python-send-receive "print '_emacs_out ()'") | ||
| 1383 | ;; (with-current-buffer python-buffer | ||
| 1384 | ;; (set-marker compilation-parsing-end end)) | ||
| 1385 | )) | ||
| 1381 | 1386 | ||
| 1382 | (defun python-send-region (start end) | 1387 | (defun python-send-region (start end) |
| 1383 | "Send the region to the inferior Python process." | 1388 | "Send the region to the inferior Python process." |