From: Leo Liu Date: Wed, 25 Apr 2012 15:23:19 +0000 (+0800) Subject: * progmodes/python.el (python-send-region): Add suffix .py X-Git-Tag: emacs-24.2.90~471^2~275 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=daf75653c2f1301332eb6c8af830050794ae0877;p=emacs.git * progmodes/python.el (python-send-region): Add suffix .py --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4ec3b1934a4..81313efc69b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -9,6 +9,9 @@ 2012-04-25 Leo Liu + * 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 diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index f88d77d214d..b00e42db4b7 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.