]> git.eshelyaron.com Git - emacs.git/commitdiff
Make inferior-python-mode-current-file be set via convert-standard-filename
authorFabián Ezequiel Gallina <fgallina@cuca>
Thu, 17 May 2012 03:03:03 +0000 (00:03 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Thu, 17 May 2012 03:03:03 +0000 (00:03 -0300)
lisp/progmodes/python.el

index 317ef2e128291736a1f2075c0349feb7fca5f269..1fd4f326d3cdc9851a0502f903652e75dc513fd5 100644 (file)
@@ -1065,7 +1065,7 @@ commands.)"
   (let* ((contents (buffer-substring start end))
          (current-file (buffer-file-name))
          (process (python-shell-get-or-create-process))
-         (temp-file (convert-standard-filename (make-temp-file "py"))))
+         (temp-file (make-temp-file "py")))
     (with-temp-file temp-file
       (insert contents)
       (delete-trailing-whitespace)
@@ -1103,13 +1103,13 @@ instead, while internally the shell will continue to use
 FILE-NAME."
   (interactive "fFile to send: ")
   (let ((process (or process (python-shell-get-or-create-process)))
-        (file-name (convert-standard-filename (expand-file-name file-name)))
+        (file-name (expand-file-name file-name))
         (temp-file-name (when temp-file-name
-                          (convert-standard-filename
-                           (expand-file-name temp-file-name)))))
+                          (expand-file-name temp-file-name))))
     (find-file-noselect file-name)
     (with-current-buffer (process-buffer process)
-      (setq inferior-python-mode-current-file file-name))
+      (setq inferior-python-mode-current-file
+            (convert-standard-filename file-name)))
     (python-shell-send-string
      (format
       (concat "__pyfile = open('''%s''');"