aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/net/tramp.el
diff options
context:
space:
mode:
authorAlan Mackenzie2017-02-05 16:28:53 +0000
committerAlan Mackenzie2017-02-05 16:28:53 +0000
commitd5514332d4a6092673ce1f78fadcae0c57f7be64 (patch)
tree1780337154904dcfad8ecfa76614b47c082160dd /lisp/net/tramp.el
parentcecc25c68f5a1834c356e18259aa2af402a70ce1 (diff)
parentde3336051ef74e0c3069374ced5b5fc7bb9fba15 (diff)
downloademacs-d5514332d4a6092673ce1f78fadcae0c57f7be64.tar.gz
emacs-d5514332d4a6092673ce1f78fadcae0c57f7be64.zip
Merge branch 'master' into comment-cache
Diffstat (limited to 'lisp/net/tramp.el')
-rw-r--r--lisp/net/tramp.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 4103a6e76a8..fc7fdd30850 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -1,6 +1,6 @@
1;;; tramp.el --- Transparent Remote Access, Multiple Protocol 1;;; tramp.el --- Transparent Remote Access, Multiple Protocol
2 2
3;; Copyright (C) 1998-2016 Free Software Foundation, Inc. 3;; Copyright (C) 1998-2017 Free Software Foundation, Inc.
4 4
5;; Author: Kai Großjohann <kai.grossjohann@gmx.net> 5;; Author: Kai Großjohann <kai.grossjohann@gmx.net>
6;; Michael Albinus <michael.albinus@gmx.de> 6;; Michael Albinus <michael.albinus@gmx.de>
@@ -4063,7 +4063,11 @@ this file, if that variable is non-nil."
4063 (file-exists-p tramp-auto-save-directory)) 4063 (file-exists-p tramp-auto-save-directory))
4064 (make-directory tramp-auto-save-directory t)) 4064 (make-directory tramp-auto-save-directory t))
4065 4065
4066 (let ((system-type 'not-windows) 4066 (let ((system-type
4067 (if (and (stringp tramp-auto-save-directory)
4068 (file-remote-p tramp-auto-save-directory))
4069 'not-windows
4070 system-type))
4067 (auto-save-file-name-transforms 4071 (auto-save-file-name-transforms
4068 (if (null tramp-auto-save-directory) 4072 (if (null tramp-auto-save-directory)
4069 auto-save-file-name-transforms)) 4073 auto-save-file-name-transforms))
@@ -4345,13 +4349,13 @@ Only works for Bourne-like shells."
4345 4349
4346(eval-after-load "esh-util" 4350(eval-after-load "esh-util"
4347 '(progn 4351 '(progn
4348 (add-hook 'eshell-first-time-mode-hook 4352 (add-hook 'eshell-mode-hook
4349 'tramp-eshell-directory-change) 4353 'tramp-eshell-directory-change)
4350 (add-hook 'eshell-directory-change-hook 4354 (add-hook 'eshell-directory-change-hook
4351 'tramp-eshell-directory-change) 4355 'tramp-eshell-directory-change)
4352 (add-hook 'tramp-unload-hook 4356 (add-hook 'tramp-unload-hook
4353 (lambda () 4357 (lambda ()
4354 (remove-hook 'eshell-first-time-mode-hook 4358 (remove-hook 'eshell-mode-hook
4355 'tramp-eshell-directory-change) 4359 'tramp-eshell-directory-change)
4356 (remove-hook 'eshell-directory-change-hook 4360 (remove-hook 'eshell-directory-change-hook
4357 'tramp-eshell-directory-change))))) 4361 'tramp-eshell-directory-change)))))