From 24b68537c35c7c7a11be02242a6f3813f279902c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= Date: Thu, 17 May 2012 00:03:03 -0300 Subject: [PATCH] Make inferior-python-mode-current-file be set via convert-standard-filename --- lisp/progmodes/python.el | 10 +++++----- 1 file 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.)" (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''');" -- 2.39.5