From: Jorgen Schaefer Date: Sat, 23 Nov 2013 03:13:16 +0000 (-0800) Subject: * lisp/progmodes/python.el (python-shell--save-temp-file): Tiny change X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~733 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=09b0f3d9cf49919618513e5397a3183ea88235b0;p=emacs.git * lisp/progmodes/python.el (python-shell--save-temp-file): Tiny change Delete temp-file when done. Fixes: debbugs:15647 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ede723e6d6b..8c9e57fd8c2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-11-23 Jorgen Schaefer (tiny change) + + * progmodes/python.el (python-shell--save-temp-file): + Delete temp-file when done. (Bug#15647) + 2013-11-23 Ivan Shmakov (tiny change) * 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.") (with-temp-file temp-file-name (insert "# -*- coding: utf-8 -*-\n") ;Not needed for Python-3. (insert string) + (insert (format "\n\nimport os ; os.remove('''%s''')\n" + temp-file-name)) (delete-trailing-whitespace)) temp-file-name))