[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 926eeb7: Allow evaluating Python code across machines
From: |
Lars Ingebrigtsen |
Subject: |
master 926eeb7: Allow evaluating Python code across machines |
Date: |
Sun, 15 Aug 2021 08:01:31 -0400 (EDT) |
branch: master
commit 926eeb7dd4b35a311d51cb651cc0c64fa4a5ab2c
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Allow evaluating Python code across machines
* python.el (python-shell-send-string): Ensure that the temporary file
is created in the host running the Python process (bug#50057).
---
lisp/progmodes/python.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 2557704..20299c2 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -3085,7 +3085,8 @@ t when called interactively."
(list (read-string "Python command: ") nil t))
(let ((process (or process (python-shell-get-process-or-error msg))))
(if (string-match ".\n+." string) ;Multiline.
- (let* ((temp-file-name (python-shell--save-temp-file string))
+ (let* ((temp-file-name (with-current-buffer (process-buffer process)
+ (python-shell--save-temp-file string)))
(file-name (or (buffer-file-name) temp-file-name)))
(python-shell-send-file file-name process temp-file-name t))
(comint-send-string process string)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 926eeb7: Allow evaluating Python code across machines,
Lars Ingebrigtsen <=