aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/net
diff options
context:
space:
mode:
authorMichael Albinus2013-01-09 10:49:27 +0100
committerMichael Albinus2013-01-09 10:49:27 +0100
commitccd04887a3f15ce0e52af801d8a70c91d695f78c (patch)
treec604ac3dbb3b61f4849b7692d4489db2530619e9 /lisp/net
parentfb9f7146677ca0d6f03ca88dd8cd39bc3733682d (diff)
downloademacs-ccd04887a3f15ce0e52af801d8a70c91d695f78c.tar.gz
emacs-ccd04887a3f15ce0e52af801d8a70c91d695f78c.zip
* net/tramp.el (tramp-eshell-directory-change): Check remote-path
first in session cache: When `tramp-own-remote-path' is in `tramp-remote-path', the remote path is only set in the session cache.
Diffstat (limited to 'lisp/net')
-rw-r--r--lisp/net/tramp.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index f8db03ee4d7..2c4aac0ac8a 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -3901,7 +3901,12 @@ Only works for Bourne-like shells."
3901 (with-parsed-tramp-file-name default-directory nil 3901 (with-parsed-tramp-file-name default-directory nil
3902 (mapconcat 3902 (mapconcat
3903 'identity 3903 'identity
3904 (tramp-get-connection-property v "remote-path" nil) 3904 (or
3905 ;; When `tramp-own-remote-path' is in `tramp-remote-path',
3906 ;; the remote path is only set in the session cache.
3907 (tramp-get-connection-property
3908 (tramp-get-connection-process v) "remote-path" nil)
3909 (tramp-get-connection-property v "remote-path" nil))
3905 ":")) 3910 ":"))
3906 (getenv "PATH")))) 3911 (getenv "PATH"))))
3907 3912