aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2012-04-25 23:23:19 +0800
committerLeo Liu <[email protected]>2012-04-25 23:23:19 +0800
commitdaf75653c2f1301332eb6c8af830050794ae0877 (patch)
tree7ba67c85572d004478cd50babd94d9a9e0c69f33
parent07875ee72bffac01a1978d0367883d6ceb88cc55 (diff)
* progmodes/python.el (python-send-region): Add suffix .py
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/progmodes/python.el2
2 files changed, 4 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4ec3b1934a..81313efc69 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -9,6 +9,9 @@
2012-04-25 Leo Liu <[email protected]>
+ * progmodes/python.el (python-send-region): Add suffix .py to the
+ temp file.
+
* files.el (auto-mode-alist): Use javascript-mode instead.
2012-04-25 Alex Harsanyi <[email protected]>
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index f88d77d214..b00e42db4b 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1601,7 +1601,7 @@ behavior, change `python-remove-cwd-from-path' to nil."
;; Fixme: Write a `coding' header to the temp file if the region is
;; non-ASCII.
(interactive "r")
- (let* ((f (make-temp-file "py"))
+ (let* ((f (make-temp-file "py" nil ".py"))
(command
;; IPython puts the FakeModule module into __main__ so
;; emacs.eexecfile becomes useless.