From daf75653c2f1301332eb6c8af830050794ae0877 Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Wed, 25 Apr 2012 23:23:19 +0800 Subject: [PATCH] * progmodes/python.el (python-send-region): Add suffix .py --- lisp/ChangeLog | 3 +++ lisp/progmodes/python.el | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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. -- 2.39.2