]> git.eshelyaron.com Git - emacs.git/commit
Change Python eval to send directly instead of using temporary files
authorAugusto Stoffel <arstoffel@gmail.com>
Fri, 3 Sep 2021 12:26:51 +0000 (14:26 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 3 Sep 2021 12:26:51 +0000 (14:26 +0200)
commite32c7d2a8d1635af5234a8ceabbdbe911abc9a7b
tree01f706c3efd2e4051b53416343a107dec9a7a4d9
parent34550b44924cac96ece0ae0cd215dea433dd863a
Change Python eval to send directly instead of using temporary files

* lisp/progmodes/python.el (python-shell-eval-setup-code): New
const for setting up eval (bug#49822).
(python-shell--encode-string): New function.
(python-shell-send-string): Use it to send commands directly
instead of writing to a temporary file.
(python-shell-send-string-no-output): Adjust sending.
(python-shell-send-file): Ditto.
lisp/progmodes/python.el