aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorMichael Albinus2016-11-20 16:29:47 +0100
committerMichael Albinus2016-11-20 16:29:47 +0100
commit22946702b4296c0e42e4baf6221e205b52d05cbf (patch)
treea81e506e5176351677c8f677e32cde6236d1b070 /lisp/progmodes/python.el
parent26c45889259682af0fbf05bccf7f084408860125 (diff)
downloademacs-22946702b4296c0e42e4baf6221e205b52d05cbf.tar.gz
emacs-22946702b4296c0e42e4baf6221e205b52d05cbf.zip
Add file-local-name
* doc/lispref/files.texi (Magic File Names): Add `file-local-name'. (Unique File Names): Use it. * etc/NEWS: Mention `file-local-name'. * lisp/files.el (file-local-name): New defun. (file-expand-wildcards): * lisp/eshell/em-tramp.el (eshell/su, eshell/sudo): * lisp/eshell/esh-ext.el (eshell-remote-command): * lisp/eshell/esh-proc.el (eshell-gather-process-output): * lisp/org/ob-core.el (org-babel-local-file-name): * lisp/progmodes/gud.el (gud-common-init, gud-format-command): * lisp/progmodes/python.el (python-shell-send-file): * lisp/shell.el (shell): * lisp/vc/ediff-diff.el (ediff-same-file-contents): * lisp/vc/vc-git.el (vc-git-checkin): Use it.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el7
1 files changed, 2 insertions, 5 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index be96ac32a01..af8b791a90e 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -3150,13 +3150,10 @@ t when called interactively."
3150 (insert-file-contents 3150 (insert-file-contents
3151 (or temp-file-name file-name)) 3151 (or temp-file-name file-name))
3152 (python-info-encoding))) 3152 (python-info-encoding)))
3153 (file-name (expand-file-name 3153 (file-name (expand-file-name (file-local-name file-name)))
3154 (or (file-remote-p file-name 'localname)
3155 file-name)))
3156 (temp-file-name (when temp-file-name 3154 (temp-file-name (when temp-file-name
3157 (expand-file-name 3155 (expand-file-name
3158 (or (file-remote-p temp-file-name 'localname) 3156 (file-local-name temp-file-name)))))
3159 temp-file-name)))))
3160 (python-shell-send-string 3157 (python-shell-send-string
3161 (format 3158 (format
3162 (concat 3159 (concat