]> granicus.if.org Git - python/commitdiff
(py-execute-region): This one's easy... kill the temporary file's
authorBarry Warsaw <barry@python.org>
Tue, 20 Feb 2001 23:07:56 +0000 (23:07 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 20 Feb 2001 23:07:56 +0000 (23:07 +0000)
buffer after executing its contents.

Misc/python-mode.el

index 3952b4d677868fbc9cd40fe7219eac8754881524..b780b752ac05bc7c161aae7c00cd86e2f3917848 100644 (file)
@@ -2,7 +2,7 @@
 
 ;; Copyright (C) 1992,1993,1994  Tim Peters
 
-;; Author: 1995-1998 Barry A. Warsaw
+;; Author: 1995-2001 Barry A. Warsaw
 ;;         1992-1994 Tim Peters
 ;; Maintainer: python-mode@python.org
 ;; Created:    Feb 1992
@@ -1341,7 +1341,9 @@ is inserted at the end.  See also the command `py-clear-queue'."
          ))
       ;; TBD: delete the buffer
       )
-     )))
+     )
+    ;; Clean up after ourselves.
+    (kill-buffer buf)))
 
 \f
 ;; Code execution commands