]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Bug#29149 in shell.el
authorMichael Albinus <michael.albinus@gmx.de>
Sat, 13 Jan 2018 16:48:10 +0000 (17:48 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 14 Jan 2018 09:00:11 +0000 (10:00 +0100)
* lisp/shell.el (shell): Change order of `file-local-name' and
`expand-file-name' calls.  Otherwise, the local file name
would be extended by a drive letter, even when it is a remote
file, seen from w32.  (Bug#29149)

lisp/shell.el

index f046d7830e615549d8f3e5083dd0694d0fb7e579..5c228a5eba9a4516f35f4623d50a0b6a3ad0f1c5 100644 (file)
@@ -727,8 +727,8 @@ Otherwise, one argument `-i' is passed to the shell.
                (null explicit-shell-file-name)
                (null (getenv "ESHELL")))
           (set (make-local-variable 'explicit-shell-file-name)
-               (expand-file-name
-                (file-local-name
+               (file-local-name
+               (expand-file-name
                  (read-file-name
                   "Remote shell path: " default-directory shell-file-name
                   t shell-file-name)))))))