Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7153460

Browse files
committed
(py-execute-region): This one's easy... kill the temporary file's
buffer after executing its contents.
1 parent 599ce9c commit 7153460

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Misc/python-mode.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
;; Copyright (C) 1992,1993,1994 Tim Peters
44

5-
;; Author: 1995-1998 Barry A. Warsaw
5+
;; Author: 1995-2001 Barry A. Warsaw
66
;; 1992-1994 Tim Peters
77
;; Maintainer: [email protected]
88
;; Created: Feb 1992
@@ -1341,7 +1341,9 @@ is inserted at the end. See also the command `py-clear-queue'."
13411341
))
13421342
;; TBD: delete the buffer
13431343
)
1344-
)))
1344+
)
1345+
;; Clean up after ourselves.
1346+
(kill-buffer buf)))
13451347

13461348

13471349
;; Code execution commands

0 commit comments

Comments
 (0)