]> git.eshelyaron.com Git - emacs.git/commitdiff
* progmodes/python.el (python-send-region): Add suffix .py
authorLeo Liu <sdl.web@gmail.com>
Wed, 25 Apr 2012 15:23:19 +0000 (23:23 +0800)
committerLeo Liu <sdl.web@gmail.com>
Wed, 25 Apr 2012 15:23:19 +0000 (23:23 +0800)
lisp/ChangeLog
lisp/progmodes/python.el

index 4ec3b1934a47ea0b39ffd8c3ae021b3c1fd03339..81313efc69b3cf18e2681493a1e3780fd3dd2f8a 100644 (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>
index f88d77d214d5617059d545110b21e0acfd987401..b00e42db4b7a1e118afa63da6be373eccb14511f 100644 (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.