mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +00:00
(py-execute-region): Fixed small bug with queuing file for execution
in a py-shell. Temp files now get cleaned up.
This commit is contained in:
parent
2518c67984
commit
a9ce70f3bc
1 changed files with 1 additions and 2 deletions
|
|
@ -1049,9 +1049,8 @@ is inserted at the end. See also the command `py-clear-queue'."
|
||||||
;; use the existing python shell
|
;; use the existing python shell
|
||||||
(if (not py-file-queue)
|
(if (not py-file-queue)
|
||||||
(py-execute-file proc file)
|
(py-execute-file proc file)
|
||||||
(push file py-file-queue)
|
|
||||||
(message "File %s queued for execution" file))
|
(message "File %s queued for execution" file))
|
||||||
)
|
(push file py-file-queue))
|
||||||
(t
|
(t
|
||||||
;; otherwise either run it synchronously in a subprocess
|
;; otherwise either run it synchronously in a subprocess
|
||||||
(shell-command-on-region start end py-python-command outbuf)
|
(shell-command-on-region start end py-python-command outbuf)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue