diff options
author | Leo Liu <[email protected]> | 2012-04-25 23:23:19 +0800 |
---|---|---|
committer | Leo Liu <[email protected]> | 2012-04-25 23:23:19 +0800 |
commit | daf75653c2f1301332eb6c8af830050794ae0877 (patch) | |
tree | 7ba67c85572d004478cd50babd94d9a9e0c69f33 | |
parent | 07875ee72bffac01a1978d0367883d6ceb88cc55 (diff) |
* progmodes/python.el (python-send-region): Add suffix .py
-rw-r--r-- | lisp/ChangeLog | 3 | ||||
-rw-r--r-- | lisp/progmodes/python.el | 2 |
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. |