diff options
| author | Jorgen Schaefer | 2013-11-22 19:13:16 -0800 |
|---|---|---|
| committer | Glenn Morris | 2013-11-22 19:13:16 -0800 |
| commit | 09b0f3d9cf49919618513e5397a3183ea88235b0 (patch) | |
| tree | f8c952ae3f1003243c96f0eb1550348f3e30ed4a | |
| parent | 50dca5dfd6adef80fb90a49736cdfcbd4c00d764 (diff) | |
| download | emacs-09b0f3d9cf49919618513e5397a3183ea88235b0.tar.gz emacs-09b0f3d9cf49919618513e5397a3183ea88235b0.zip | |
* lisp/progmodes/python.el (python-shell--save-temp-file): Tiny change
Delete temp-file when done.
Fixes: debbugs:15647
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ede723e6d6b..8c9e57fd8c2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-11-23 Jorgen Schaefer <forcer@forcix.cx> (tiny change) | ||
| 2 | |||
| 3 | * progmodes/python.el (python-shell--save-temp-file): | ||
| 4 | Delete temp-file when done. (Bug#15647) | ||
| 5 | |||
| 1 | 2013-11-23 Ivan Shmakov <ivan@siamics.net> (tiny change) | 6 | 2013-11-23 Ivan Shmakov <ivan@siamics.net> (tiny change) |
| 2 | 7 | ||
| 3 | * vc/diff-mode.el (diff-mode): Only allow diff-default-read-only | 8 | * vc/diff-mode.el (diff-mode): Only allow diff-default-read-only |
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 7a90f0bb5ee..b3918e906e9 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -2046,6 +2046,8 @@ there for compatibility with CEDET.") | |||
| 2046 | (with-temp-file temp-file-name | 2046 | (with-temp-file temp-file-name |
| 2047 | (insert "# -*- coding: utf-8 -*-\n") ;Not needed for Python-3. | 2047 | (insert "# -*- coding: utf-8 -*-\n") ;Not needed for Python-3. |
| 2048 | (insert string) | 2048 | (insert string) |
| 2049 | (insert (format "\n\nimport os ; os.remove('''%s''')\n" | ||
| 2050 | temp-file-name)) | ||
| 2049 | (delete-trailing-whitespace)) | 2051 | (delete-trailing-whitespace)) |
| 2050 | temp-file-name)) | 2052 | temp-file-name)) |
| 2051 | 2053 | ||