aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2012-05-17 00:03:03 -0300
committerFabián Ezequiel Gallina2012-05-17 00:03:03 -0300
commit24b68537c35c7c7a11be02242a6f3813f279902c (patch)
tree4fe4eb373b31d4fa1d808a9b509cacbca7905a0f /lisp/progmodes/python.el
parentd439cda5982b3c56b6817870f075bcc8860f7785 (diff)
downloademacs-24b68537c35c7c7a11be02242a6f3813f279902c.tar.gz
emacs-24b68537c35c7c7a11be02242a6f3813f279902c.zip
Make inferior-python-mode-current-file be set via convert-standard-filename
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 317ef2e1282..1fd4f326d3c 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1065,7 +1065,7 @@ commands.)"
1065 (let* ((contents (buffer-substring start end)) 1065 (let* ((contents (buffer-substring start end))
1066 (current-file (buffer-file-name)) 1066 (current-file (buffer-file-name))
1067 (process (python-shell-get-or-create-process)) 1067 (process (python-shell-get-or-create-process))
1068 (temp-file (convert-standard-filename (make-temp-file "py")))) 1068 (temp-file (make-temp-file "py")))
1069 (with-temp-file temp-file 1069 (with-temp-file temp-file
1070 (insert contents) 1070 (insert contents)
1071 (delete-trailing-whitespace) 1071 (delete-trailing-whitespace)
@@ -1103,13 +1103,13 @@ instead, while internally the shell will continue to use
1103FILE-NAME." 1103FILE-NAME."
1104 (interactive "fFile to send: ") 1104 (interactive "fFile to send: ")
1105 (let ((process (or process (python-shell-get-or-create-process))) 1105 (let ((process (or process (python-shell-get-or-create-process)))
1106 (file-name (convert-standard-filename (expand-file-name file-name))) 1106 (file-name (expand-file-name file-name))
1107 (temp-file-name (when temp-file-name 1107 (temp-file-name (when temp-file-name
1108 (convert-standard-filename 1108 (expand-file-name temp-file-name))))
1109 (expand-file-name temp-file-name)))))
1110 (find-file-noselect file-name) 1109 (find-file-noselect file-name)
1111 (with-current-buffer (process-buffer process) 1110 (with-current-buffer (process-buffer process)
1112 (setq inferior-python-mode-current-file file-name)) 1111 (setq inferior-python-mode-current-file
1112 (convert-standard-filename file-name)))
1113 (python-shell-send-string 1113 (python-shell-send-string
1114 (format 1114 (format
1115 (concat "__pyfile = open('''%s''');" 1115 (concat "__pyfile = open('''%s''');"