]> git.eshelyaron.com Git - emacs.git/commit
Allow using 'python-shell-send-file' across machines
authorAugusto Stoffel <arstoffel@gmail.com>
Sat, 11 Sep 2021 13:02:04 +0000 (15:02 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 11 Sep 2021 13:02:04 +0000 (15:02 +0200)
commit6343384348180b18be191be64d7106c4866c0675
tree7ca35105f67736caedcf643fb61f27e574537e24
parentafa82b3f7f864467ebf8807d0d3b95376383d5af
Allow using 'python-shell-send-file' across machines

* progmodes/python.el (python-shell-eval-file-setup-code): Look for a
file coding cookie on the Python rather than on the Emacs side, to
avoid additional file transfers.
(python-shell--save-temp-file): Allow argument to be a buffer.
(python-shell-send-file): Address the case where the selected file and
the inferior process are on different machines (bug#50516).
lisp/progmodes/python.el