* progmodes/python.el (python-send-region): Add suffix .py

This commit is contained in:
Leo Liu 2012-04-25 23:23:19 +08:00
parent 07875ee72b
commit daf75653c2
2 changed files with 4 additions and 1 deletions

View file

@ -9,6 +9,9 @@
2012-04-25 Leo Liu <sdl.web@gmail.com>
* 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 <AlexHarsanyi@gmail.com>

View file

@ -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.